diff options
author | ShadowNinja <shadowninja@minetest.net> | 2014-01-23 19:21:01 -0500 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2014-01-23 19:21:56 -0500 |
commit | 76d4396fa148a44f6aaee38d188d4c2cf8c90c7f (patch) | |
tree | 45dd3008454d86197bbf7a732bc5ceedd7b2a032 /src/script/lua_api | |
parent | cd7e8372f3c83531afe5d5c2460ecb95540f9d0d (diff) | |
download | minetest-76d4396fa148a44f6aaee38d188d4c2cf8c90c7f.tar.gz minetest-76d4396fa148a44f6aaee38d188d4c2cf8c90c7f.tar.bz2 minetest-76d4396fa148a44f6aaee38d188d4c2cf8c90c7f.zip |
Pass pointed_thing to on_punch and minetest.register_on_punchnode callbacks
Diffstat (limited to 'src/script/lua_api')
-rw-r--r-- | src/script/lua_api/l_env.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |