1
0
Mirror von https://github.com/minetest/minetest_game.git synchronisiert 2025-09-18 14:20:48 +02:00

default.set_inventory_action_loggers: Hook (instead of replace) callbacks

Dieser Commit ist enthalten in:
Lars Mueller
2023-06-06 14:07:33 +02:00
committet von Lars Müller
Ursprung 996fea7cd0
Commit 16b6bdde0a
2 geänderte Dateien mit 9 neuen und 1 gelöschten Zeilen

Datei anzeigen

@@ -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