Closed Sur3 closed 6 years ago
@sofar Missing check in the doors
mod I think.
This issue could also be caused by using the ObjectRef player
in door_toggle
two seconds after the actual event. Meanwhile the player might already be invalid (left).
https://github.com/minetest-mods/xdecor/blob/9b5bdc1b1a387e5f89fca850c6e52940c228ff6e/src/mechanisms.lua#L18-L24
EDIT: It's indeed that problem. xdecor supplies an invalid player object indirectly to core.check_player_privs
Then it's better that the check for the object is added upstream.
I also had an other issue with some xdecor callback now, is that one related or a new issue?
2018-08-12 23:16:28: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'xdecor' in callback item_OnPlace(): /usr/share/minetest/builtin/common/misc_helpers.lua:650: attempt to perform arithmetic on a nil value 2018-08-12 23:16:28: ERROR[Main]: stack traceback: 2018-08-12 23:16:28: ERROR[Main]: /usr/share/minetest/builtin/common/misc_helpers.lua:650: in function 'pointed_thing_to_face_pos' 2018-08-12 23:16:28: ERROR[Main]: .../share/minetest/games/minetest_game/mods/stairs/init.lua:31: in function <.../share/minetest/games/minetest_game/mods/stairs/init.lua:20>
Please open a new issue mentioning the item you placed prior to crashing.
Ok thanks, did that: https://github.com/minetest-mods/xdecor/issues/96
I had an error produced by xdecor:
(Also enchantment of swords seems not to work but I think that is an other issue..)