From 76d4396fa148a44f6aaee38d188d4c2cf8c90c7f Mon Sep 17 00:00:00 2001 From: ShadowNinja Date: Thu, 23 Jan 2014 19:21:01 -0500 Subject: Pass pointed_thing to on_punch and minetest.register_on_punchnode callbacks --- src/script/lua_api/l_env.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/script/lua_api/l_env.cpp') diff --git a/src/script/lua_api/l_env.cpp b/src/script/lua_api/l_env.cpp index f75334750..6447866cd 100644 --- a/src/script/lua_api/l_env.cpp +++ b/src/script/lua_api/l_env.cpp @@ -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; } -- cgit v1.2.3