mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-07-20 22:33:34 -04:00
fixes as per code review completed
This commit is contained in:
parent
7ce365f4e4
commit
63f6abe52f
2 changed files with 110 additions and 92 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue