Open Yonle opened 1 year ago
2023-07-29 22:07:06: ACTION[Main]: Server: Shutting down
2023-07-29 22:07:06: ACTION[Main]: IRC: Disconnected.
2023-07-29 22:07:06: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod 'animalia' in callback luaentity_Step(): .../_minetest/.minetest/mods/animalia/api/behaviors.lua:530: bad argument #2 to 'random' (interval is empty)
2023-07-29 22:07:06: ERROR[Main]: stack traceback:
2023-07-29 22:07:06: ERROR[Main]: [C]: in function 'random'
2023-07-29 22:07:06: ERROR[Main]: .../_minetest/.minetest/mods/animalia/api/behaviors.lua:530: in function 'action_wander_walk'
2023-07-29 22:07:06: ERROR[Main]: .../_minetest/.minetest/mods/animalia/api/behaviors.lua:891: in function 'func'
2023-07-29 22:07:06: ERROR[Main]: /home/_minetest/.minetest/mods/creatura/mob_meta.lua:1184: in function '_execute_utilities'
2023-07-29 22:07:06: ERROR[Main]: /home/_minetest/.minetest/mods/creatura/mob_meta.lua:937: in function </home/_minetest/.minetest/mods/creatura/mob_meta.lua:902>
I also get this (Server v5.7.0) (as soon as i join the server)
It appears that LuaJIT tolerates the second argument to math.random() being lower than the first, but plain Lua does not. I'm not familiar enough with this mod to say for sure if "width" is positive here or not, but if it is, perhaps this is why it crashes for some users but not others.
Minetest v5.6.0 server.