hawkfalcon/Stardew-Mods

[BetterJunimos] Junimos won't go home or do work randomly, lags when they jump and make sounds.

Closed this issue · 0 comments

Junimos will often just lay around, even when there's work to do (plant stuff, gather crops, etc) within their radius. Seems like their pathfinder is struggling.
I think it might have something to do with JunimoHarvesterPatches.cs (132):

 else if (Game1.random.NextDouble() < 0.25) {
                        ___netAnimationEvent.Fire(0);
                        __instance.returnToJunimoHut(__instance.currentLocation);
                    }
                    else {
                        __instance.pathfindToRandomSpotAroundHut();
                    }

This makes them have a random chance of not going home when there's nothing within their radius, which is bad (and can cause lag), even though it doesn't explain why they aren't doing stuff when they should but it looks like a start. My game will lag every time that they jump and do their "beep" sound.