mt-mods / technic

Technic mod for Minetest
18 stars 25 forks source link

fix crash when using wrench on air or object #250

Closed nixnoxus closed 3 years ago

nixnoxus commented 3 years ago
2021-11-28 11:44:49: ACTION[Server]: noxus uses wrench:wrench, pointing at [node under=412,5,-442 above=413,5,-442]
2021-11-28 11:44:53: ACTION[Server]: noxus uses wrench:wrench, pointing at [object 26]
2021-11-28 11:44:54: ACTION[Main]: Server: Shutting down
2021-11-28 11:44:54: ACTION[Server]: noxus leaves game. List of players: 
2021-11-28 11:44:56: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'wrench' in callback item_OnUse(): ...netest/minetest.git/bin/../mods/borders/barriers.lua:171: attempt to index local 'pos' (a nil value)
2021-11-28 11:44:56: ERROR[Main]: stack traceback:
2021-11-28 11:44:56: ERROR[Main]:       ...netest/minetest.git/bin/../mods/borders/barriers.lua:171: in function 'is_barrier_node'
2021-11-28 11:44:56: ERROR[Main]:       ...netest/minetest.git/bin/../mods/borders/barriers.lua:442: in function 'is_protected'
2021-11-28 11:44:56: ERROR[Main]:       ...est/minetest.git/bin/../mods/technic/wrench/tool.lua:13: in function <...est/minetest.git/bin/../mods/technic/wrench/tool.lua:7>
OgelGames commented 3 years ago

Thanks 👍