Game crash due to villagers trying to sleep
Closed this issue · 0 comments
During play the game will randomly crash with an "Object reference not set to an instance of an object" error. Pulling the server-event.txt file below, which shows errors are due to villagers trying to sleep(I think). In my village i have a trader with a bed, a farmer with a bed and workstation, and a mayors workstation. I noticed that the farmer didn't have a bed assigned to him for some reason (I think because it was picked up and placed again). I'm not sure if this is the problem, but I made sure to check that the pathing was fine for whenever they needed to go to workstation/bed.
Looks like its happening on AiTaskVillageSleep, so maybe my farmer is trying sleep but doesn't have a bed so it errors. Once I disabled the mod for my game I was able to join again, otherwise it would just crash every time i tried to start.