diff options
author | Wayward One <calmthefirewithin@gmail.com> | 2016-04-30 10:31:11 -0400 |
---|---|---|
committer | Craig Robbins <kde.psych@gmail.com> | 2016-05-17 22:16:21 +1000 |
commit | 8b940c005fd13db4e611ec49bc44881048b42cf7 (patch) | |
tree | fe9de0e85071d2c34b97766bc226c749deb0545c /builtin/game/falling.lua | |
parent | 143401451c457da5079b2970fe260acea45bd85a (diff) | |
download | minetest-8b940c005fd13db4e611ec49bc44881048b42cf7.tar.gz minetest-8b940c005fd13db4e611ec49bc44881048b42cf7.tar.bz2 minetest-8b940c005fd13db4e611ec49bc44881048b42cf7.zip |
Add on_punchnode callback
Diffstat (limited to 'builtin/game/falling.lua')
-rw-r--r-- | builtin/game/falling.lua | 5 |
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) |