littlej541 / hands-off

Minecraft mod that allows you to stop villagers from claiming your beds and job blocks.
MIT License
0 stars 0 forks source link

What the villager doing? #1

Closed Acat1234 closed 1 year ago

Acat1234 commented 1 year ago

If you mark a bed that a villager is sleeping in then this happens 2023-04-19_13 41 05 They keep the sleeping pose and walk at the same time can that get fixed?

littlej541 commented 1 year ago

It seems to be related to marking a bed when a villager is already sleeping in it after loading into a world. Can you confirm this on your end? Breaking the bed resets their pose as a temporary fix. Currently investigating the cause.

littlej541 commented 1 year ago

I've got a fix coming out for both 1.18.2 and 1.19.2 that should solve it, but you will still have to break the bed the villager was in to correct their pose. It had to do with the several issues combining:

  1. The villager AI running its path to bed at night behavior even when already in bed.
  2. This mod clearing the bed location if the bed is marked when the AI tries to path to the bed.
  3. The villager AI not running its sleep behavior when the game is reloaded if it was sleeping the last time the game was shutdown. This behavior is typically what kicks the villager out of bed when you mark it.

Thanks for the report. If you find any other issues or it is still occurring after you break and replace the offending bed, please be sure to let me know.