aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2020-03-04 19:13:26 +0100
committersfan5 <sfan5@live.de>2020-03-05 22:04:23 +0100
commite774d8ca2fa5ead9f6d739a2031e6655a22a5b4d (patch)
tree6aba5db64df6c5773bdca50cc22a66e4832909a4 /doc
parent8d6a0b917ce1e7f4f1017835af0ca76e79c98c38 (diff)
downloadminetest-e774d8ca2fa5ead9f6d739a2031e6655a22a5b4d.tar.gz
minetest-e774d8ca2fa5ead9f6d739a2031e6655a22a5b4d.tar.bz2
minetest-e774d8ca2fa5ead9f6d739a2031e6655a22a5b4d.zip
Fixes around ServerActiveObject on_punch handling
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index acf2f77c1..a603a5a37 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -3900,6 +3900,7 @@ Callbacks:
* `dir`: unit vector of direction of punch. Always defined. Points from the
puncher to the punched.
* `damage`: damage that will be done to entity.
+ * Can return `true` to prevent the default damage mechanism.
* `on_death(self, killer)`
* Called when the object dies.
* `killer`: an `ObjectRef` (can be `nil`)