1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Pass pointed_thing to on_punch and minetest.register_on_punchnode callbacks

This commit is contained in:
ShadowNinja 2014-01-23 19:21:01 -05:00
parent cd7e8372f3
commit 76d4396fa1
7 changed files with 28 additions and 38 deletions

View 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;
}