]> git.lizzy.rs Git - minetest.git/blobdiff - src/script/lua_api/l_env.cpp
Pass pointed_thing to on_punch and minetest.register_on_punchnode callbacks
[minetest.git] / src / script / lua_api / l_env.cpp
index f753347501f3917818a3c15c5291fee0924f383a..6447866cdc7b401cd20863cc6c414801cbf816ce 100644 (file)
@@ -273,7 +273,7 @@ int ModApiEnvMod::l_punch_node(lua_State *L)
        }
        // Punch it with a NULL puncher (appears in Lua as a non-functional
        // ObjectRef)
-       bool success = scriptIfaceNode->node_on_punch(pos, n, NULL);
+       bool success = scriptIfaceNode->node_on_punch(pos, n, NULL, PointedThing());
        lua_pushboolean(L, success);
        return 1;
 }