1
0
mirror of https://github.com/minetest/minetest_game.git synced 2025-07-02 23:00:21 +02:00

default.set_inventory_action_loggers: Hook (instead of replace) callbacks

This commit is contained in:
Lars Mueller
2023-06-06 14:07:33 +02:00
committed by Lars Müller
parent 996fea7cd0
commit 16b6bdde0a
2 changed files with 9 additions and 1 deletions

View File

@ -1142,8 +1142,9 @@ the log.
`default.set_inventory_action_loggers(def, name)`
* sets the callbacks `on_metadata_inventory_move`,
* hooks the callbacks `on_metadata_inventory_move`,
`on_metadata_inventory_put` and `on_metadata_inventory_take`
that log corresponding actions
* after logging the action, the original callback (if any) is called
* `def` See [Node definition]
* `name` Description of the node in the log message