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:
parent
cd7e8372f3
commit
76d4396fa1
7 changed files with 28 additions and 38 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue