mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Run detach callbacks on player leave
Correct docs regarding non-nil detaching children
This commit is contained in:
parent
a292d19fd0
commit
9dd432c29f
2 changed files with 5 additions and 2 deletions
|
@ -4869,9 +4869,9 @@ Registered entities
|
|||
* `killer`: an `ObjectRef` (can be `nil`)
|
||||
* `on_rightclick(self, clicker)`
|
||||
* `on_attach_child(self, child)`
|
||||
* `child`: an `ObjectRef` (can be `nil`) of the child that attaches
|
||||
* `child`: an `ObjectRef` of the child that attaches
|
||||
* `on_detach_child(self, child)`
|
||||
* `child`: an `ObjectRef` (can be `nil`) of the child that detaches
|
||||
* `child`: an `ObjectRef` of the child that detaches
|
||||
* `on_detach(self, parent)`
|
||||
* `parent`: an `ObjectRef` (can be `nil`) from where it got detached
|
||||
* This happens before the parent object is removed from the world
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue