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:
@ -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.
|
||||
|
||||
|
Reference in New Issue
Block a user