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

fixes as per code review completed (2)

This commit is contained in:
Imre Péntek
2023-05-06 10:24:22 +02:00
parent 3dad8a530d
commit eeec7d6be0
2 changed files with 86 additions and 94 deletions

View File

@ -85,11 +85,9 @@ e.g. `table.insert(bones.player_inventory_lists, "backpack")`
Additionally, callbacks can be registered to transfer items into the bones on death:
`bones.register_dead_player_inv_management(function(player,callback){})`
`bones.register_dead_player_inv_management(function(player){})`
In the above functions the provided callback should be used to add items to the bones inventory:
`callback(stack)`
the registered function is supposed to return with a table of items to be transferred.
please note that the inventory these items were taken from still need to be disposed of.