mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Pass pointed_thing to on_punch and minetest.register_on_punchnode callbacks
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user