1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

Fixes around ServerActiveObject on_punch handling

This commit is contained in:
sfan5 2020-03-04 19:13:26 +01:00
parent 8d6a0b917c
commit e774d8ca2f
3 changed files with 6 additions and 2 deletions

View file

@ -3900,6 +3900,7 @@ Callbacks:
* `dir`: unit vector of direction of punch. Always defined. Points from the
puncher to the punched.
* `damage`: damage that will be done to entity.
* Can return `true` to prevent the default damage mechanism.
* `on_death(self, killer)`
* Called when the object dies.
* `killer`: an `ObjectRef` (can be `nil`)