mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Add on_punchnode callback
This commit is contained in:
parent
143401451c
commit
8b940c005f
1 changed files with 5 additions and 0 deletions
|
@ -258,3 +258,8 @@ function on_dignode(p, node)
|
||||||
nodeupdate(p)
|
nodeupdate(p)
|
||||||
end
|
end
|
||||||
core.register_on_dignode(on_dignode)
|
core.register_on_dignode(on_dignode)
|
||||||
|
|
||||||
|
function on_punchnode(p, node)
|
||||||
|
nodeupdate(p)
|
||||||
|
end
|
||||||
|
core.register_on_punchnode(on_punchnode)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue