ElCeejo / animalia

Basic Fauna for Minetest Game
MIT License
14 stars 37 forks source link

Server Crash when Horses #37

Closed BobOmbuzal closed 1 year ago

BobOmbuzal commented 1 year ago

I don't know what happened, but there were lots of horses and i fed them with wheat, then it crashed, second time now Maybe when they have a baby horse? It's about add_child? :-)

2022-12-29 18:58:00: ACTION[Main]: Server: Shutting down
2022-12-29 18:58:02: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod 'animalia' in callback luaentity_Step(): ...home/minetest/.minetest/mods/animalia/mobs/horse.lua:162: bad argument #2 to 'random' (interval is empty)
2022-12-29 18:58:02: ERROR[Main]: stack traceback:
2022-12-29 18:58:02: ERROR[Main]:       [C]: in function 'random'
2022-12-29 18:58:02: ERROR[Main]:       ...home/minetest/.minetest/mods/animalia/mobs/horse.lua:162: in function 'add_child'
2022-12-29 18:58:02: ERROR[Main]:       ...e/minetest/.minetest/mods/animalia/api/behaviors.lua:1239: in function 'func'
2022-12-29 18:58:02: ERROR[Main]:       /home/minetest/.minetest/mods/creatura/mob_meta.lua:1152: in function '_execute_utilities'
2022-12-29 18:58:02: ERROR[Main]:       /home/minetest/.minetest/mods/creatura/mob_meta.lua:876: in function </home/minetest/.minetest/mods/creatura/mob_meta.lua:841>
ElCeejo commented 1 year ago

This should be fixed in the latest update. Make sure Creatura is also updated.