1
0
mirror of https://github.com/minetest/minetest_game.git synced 2025-07-12 10:50:21 +02:00

fixes as per code review completed

This commit is contained in:
Imre Péntek
2023-05-05 17:50:43 +02:00
parent b0545dc5c2
commit 3dad8a530d
2 changed files with 104 additions and 92 deletions

View File

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