Skip to content

Commit e32a630

Browse files
ClobberXDsfan5
authored andcommittedApr 29, 2019
Better document behavior of on_punchplayer
Esp. the fact that it's invoked even if the punched player is dead
1 parent c4578ae commit e32a630

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

Diff for: ‎doc/lua_api.txt

+1
Original file line numberDiff line numberDiff line change
@@ -3718,6 +3718,7 @@ Call these functions only at load time!
37183718
* Called after a new player has been created
37193719
* `minetest.register_on_punchplayer(function(player, hitter, time_from_last_punch, tool_capabilities, dir, damage))`
37203720
* Called when a player is punched
3721+
* Note: This callback is invoked even if the punched player is dead.
37213722
* `player`: ObjectRef - Player that was punched
37223723
* `hitter`: ObjectRef - Player that hit
37233724
* `time_from_last_punch`: Meant for disallowing spamming of clicks

0 commit comments

Comments
 (0)
Please sign in to comment.