Skip to content

Commit a318bce

Browse files
ClobberXDparamat
authored andcommittedDec 22, 2018
Lua_api.txt: Add documentation of missing field to 'on_punch' (#8008)
1 parent 2a69f87 commit a318bce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎doc/lua_api.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -3268,7 +3268,7 @@ Callbacks:
32683268
* Called on every server tick, after movement and collision processing.
32693269
`dtime` is usually 0.1 seconds, as per the `dedicated_server_step` setting
32703270
in `minetest.conf`.
3271-
* `on_punch(self, puncher, time_from_last_punch, tool_capabilities, dir)`
3271+
* `on_punch(self, puncher, time_from_last_punch, tool_capabilities, dir, damage)`
32723272
* Called when somebody punches the object.
32733273
* Note that you probably want to handle most punches using the automatic
32743274
armor group system.
@@ -3278,6 +3278,7 @@ Callbacks:
32783278
* `tool_capabilities`: capability table of used tool (can be `nil`)
32793279
* `dir`: unit vector of direction of punch. Always defined. Points from the
32803280
puncher to the punched.
3281+
* `damage`: damage that will be done to entity.
32813282
* `on_death(self, killer)`
32823283
* Called when the object dies.
32833284
* `killer`: an `ObjectRef` (can be `nil`)

0 commit comments

Comments
 (0)
Please sign in to comment.