From e774d8ca2fa5ead9f6d739a2031e6655a22a5b4d Mon Sep 17 00:00:00 2001 From: sfan5 Date: Wed, 4 Mar 2020 19:13:26 +0100 Subject: Fixes around ServerActiveObject on_punch handling --- doc/lua_api.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'doc/lua_api.txt') 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`) -- cgit v1.2.3