diff options
author | ClobberXD <ClobberXD@gmail.com> | 2018-12-22 06:02:27 +0530 |
---|---|---|
committer | Paramat <paramat@users.noreply.github.com> | 2018-12-22 00:32:27 +0000 |
commit | a318bceb637809d605fe175ce86154e9c04494a6 (patch) | |
tree | 204ffafdc7041af813d6a755c17da0a7fa120a1a /doc | |
parent | 2a69f874da804570b589da25c9ae1783b9c05a8c (diff) | |
download | minetest-a318bceb637809d605fe175ce86154e9c04494a6.tar.gz minetest-a318bceb637809d605fe175ce86154e9c04494a6.tar.bz2 minetest-a318bceb637809d605fe175ce86154e9c04494a6.zip |
Lua_api.txt: Add documentation of missing field to 'on_punch' (#8008)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 2c3e197df..e9605ee49 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -3268,7 +3268,7 @@ Callbacks: * Called on every server tick, after movement and collision processing. `dtime` is usually 0.1 seconds, as per the `dedicated_server_step` setting in `minetest.conf`. -* `on_punch(self, puncher, time_from_last_punch, tool_capabilities, dir)` +* `on_punch(self, puncher, time_from_last_punch, tool_capabilities, dir, damage)` * Called when somebody punches the object. * Note that you probably want to handle most punches using the automatic armor group system. @@ -3278,6 +3278,7 @@ Callbacks: * `tool_capabilities`: capability table of used tool (can be `nil`) * `dir`: unit vector of direction of punch. Always defined. Points from the puncher to the punched. + * `damage`: damage that will be done to entity. * `on_death(self, killer)` * Called when the object dies. * `killer`: an `ObjectRef` (can be `nil`) |