diff options
author | ANAND <ClobberXD@gmail.com> | 2019-04-27 18:05:28 +0530 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2019-04-29 14:08:34 +0200 |
commit | e32a630937de69454c741e93979a7889fcddc7a9 (patch) | |
tree | 51467c889e82ca122f4f04a8fcd34ca6787354cc /doc | |
parent | c4578aefe7dd920668ce77a99387ee3581f47311 (diff) | |
download | minetest-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
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 1 |
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 |