aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWayward One <calmthefirewithin@gmail.com>2016-04-30 10:31:11 -0400
committerCraig Robbins <kde.psych@gmail.com>2016-05-17 22:16:21 +1000
commit8b940c005fd13db4e611ec49bc44881048b42cf7 (patch)
treefe9de0e85071d2c34b97766bc226c749deb0545c
parent143401451c457da5079b2970fe260acea45bd85a (diff)
downloadminetest-8b940c005fd13db4e611ec49bc44881048b42cf7.tar.gz
minetest-8b940c005fd13db4e611ec49bc44881048b42cf7.tar.bz2
minetest-8b940c005fd13db4e611ec49bc44881048b42cf7.zip
Add on_punchnode callback
-rw-r--r--builtin/game/falling.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/builtin/game/falling.lua b/builtin/game/falling.lua
index 57bb98cfd..fa7ff24bc 100644
--- a/builtin/game/falling.lua
+++ b/builtin/game/falling.lua
@@ -258,3 +258,8 @@ function on_dignode(p, node)
nodeupdate(p)
end
core.register_on_dignode(on_dignode)
+
+function on_punchnode(p, node)
+ nodeupdate(p)
+end
+core.register_on_punchnode(on_punchnode)