mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-10-30 07:05:33 +01:00
fixes as per code review completed
This commit is contained in:
@@ -85,11 +85,11 @@ e.g. `table.insert(bones.player_inventory_lists, "backpack")`
|
||||
|
||||
Additionally, callbacks can be registered to transfer items into the bones on death:
|
||||
|
||||
`bones.public.register_transfer_inventory_to_bones_on_player_death(function(player){})`
|
||||
`bones.register_dead_player_inv_management(function(player,callback){})`
|
||||
|
||||
In the above functions this routine should be used to add itmes to the bones inventory:
|
||||
In the above functions the provided callback should be used to add items to the bones inventory:
|
||||
|
||||
`bones.public.transfer_stack_to_bones(stack)`
|
||||
`callback(stack)`
|
||||
|
||||
please note that the inventory these items were taken from still need to be disposed of.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user