Add on_punchnode callback
authorWayward One <calmthefirewithin@gmail.com>
Sat, 30 Apr 2016 14:31:11 +0000 (10:31 -0400)
committerCraig Robbins <kde.psych@gmail.com>
Tue, 17 May 2016 12:16:21 +0000 (22:16 +1000)
builtin/game/falling.lua

index 57bb98cfdb6fb6de3a31bda3dd7eb84a9ea4f658..fa7ff24bce5b0d7146553f7c6c2382c983deaffd 100644 (file)
@@ -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)