I used that because minetest.dig_node(pos) drops the items from the node.
I have changed the dig behaviour to use minetest.dig_node(pos).
Now it may happen that villagers occasionally leave the drops behind.
I like that idea and I have put it on the to-do list.
Thanks for finding the bug, I've added the fix.SFENCE wrote: ↑Sat Jan 02, 2021 12:25Hi.
It looks like there is a bug in saving home position into Lua table working_villages.homes.
When I set home position to a villager, it causes server fault on shutdown and on load (until deleting of file working_villages_homes in world directory).
It looks like it uses villager object like table key instead of inventory name.
I have fixed this bug by change forms.lua file:Code: Select all
- villager:set_home(villager.inventory_name,coords) + --villager:set_home(villager.inventory_name,coords) + working_villages.set_home(villager.inventory_name,coords)