projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1434014
)
Add on_punchnode callback
author
Wayward One
<calmthefirewithin@gmail.com>
Sat, 30 Apr 2016 14:31:11 +0000
(10:31 -0400)
committer
Craig Robbins
<kde.psych@gmail.com>
Tue, 17 May 2016 12:16:21 +0000
(22:16 +1000)
builtin/game/falling.lua
patch
|
blob
|
history
diff --git
a/builtin/game/falling.lua
b/builtin/game/falling.lua
index 57bb98cfdb6fb6de3a31bda3dd7eb84a9ea4f658..fa7ff24bce5b0d7146553f7c6c2382c983deaffd 100644
(file)
--- 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)