minetest-mods / maptools

Map Tools
https://content.minetest.net/packages/Calinou/maptools/
zlib License
20 stars 24 forks source link

Digging chests with admin pickaxe causes crash related to nodeupdate #8

Closed Fixer-007 closed 5 years ago

Fixer-007 commented 7 years ago

Newest maptools, newest 0.5.0-dev as of today. Digging locked chest with admin pickaxe gives this error:

ACTION[Server]: singleplayer takes maptools:pick_admin from creative inventory
ACTION[Server]: singleplayer digs default:chest_locked at (31,17,24) using an Admin Pickaxe.
WARNING[Server]: Undeclared global variable "nodeupdate" accessed at D:\Newprog\minetest\bin\..\mods\maptools/tools.lua:59
ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'default' in callback node_on_punch(): D:\Newprog\minetest\bin\..\mods\maptools/tools.lua:59: attempt to call global 'nodeupdate' (a nil value)
ERROR[Main]: stack traceback:
ERROR[Main]:    D:\Newprog\minetest\bin\..\mods\maptools/tools.lua:59: in function 'callback'
ERROR[Main]:    D:\Newprog\minetest\bin\..\builtin\game\item.lua:487: in function <D:\Newprog\minetest\bin\..\builtin\game\item.lua:480>

P.S. IIRC nodeupdate function is deprecated in 0.5.0

HybridDog commented 6 years ago

7

niwla23 commented 5 years ago

I have this problem in 5.0.0 with any node

Fixer-007 commented 5 years ago

Try updating this mod.

Fixer-007 commented 5 years ago

This bug is fixed for me, thank you.