From: Wayward One Date: Sat, 30 Apr 2016 14:31:11 +0000 (-0400) Subject: Add on_punchnode callback X-Git-Tag: 0.4.15~412 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8b940c005fd13db4e611ec49bc44881048b42cf7;p=oweals%2Fminetest.git Add on_punchnode callback --- 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)