aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorANAND <ClobberXD@gmail.com>2019-04-27 18:05:28 +0530
committersfan5 <sfan5@live.de>2019-04-29 14:08:34 +0200
commite32a630937de69454c741e93979a7889fcddc7a9 (patch)
tree51467c889e82ca122f4f04a8fcd34ca6787354cc
parentc4578aefe7dd920668ce77a99387ee3581f47311 (diff)
downloadminetest-e32a630937de69454c741e93979a7889fcddc7a9.tar.gz
minetest-e32a630937de69454c741e93979a7889fcddc7a9.tar.bz2
minetest-e32a630937de69454c741e93979a7889fcddc7a9.zip
Better document behavior of on_punchplayer
Esp. the fact that it's invoked even if the punched player is dead
-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 c75800cf4..f72b87625 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -3718,6 +3718,7 @@ Call these functions only at load time!
* Called after a new player has been created
* `minetest.register_on_punchplayer(function(player, hitter, time_from_last_punch, tool_capabilities, dir, damage))`
* Called when a player is punched
+ * Note: This callback is invoked even if the punched player is dead.
* `player`: ObjectRef - Player that was punched
* `hitter`: ObjectRef - Player that hit
* `time_from_last_punch`: Meant for disallowing spamming of clicks