mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-03-15 20:31:23 +00:00
Fix table.insert
usage
This commit is contained in:
parent
224ae80626
commit
bd60bfb549
1 changed files with 5 additions and 5 deletions
|
@ -299,14 +299,14 @@ minetest.register_on_dieplayer(function(player)
|
|||
return
|
||||
end
|
||||
|
||||
local all_inventory = collect_all_items(player)
|
||||
if bones_mode == "bones" and #all_inventory > 0 then
|
||||
local all_items = collect_all_items(player)
|
||||
if bones_mode == "bones" and #all_items > 0 then
|
||||
bones_mode, bones_pos, bones_inv, bones_meta = find_node_for_bones_on_player_death(player, player_pos)
|
||||
end
|
||||
if bones_mode == "drop" and #all_inventory > 0 then
|
||||
all_inventory.insert(all_inventory,ItemStack("bones:bones"))
|
||||
if bones_mode == "drop" and #all_items > 0 then
|
||||
table.insert(all_items, ItemStack("bones:bones"))
|
||||
end
|
||||
local dropped = dump_into(bones_mode, bones_inv, bones_pos, all_inventory)
|
||||
local dropped = dump_into(bones_mode, bones_inv, bones_pos, all_items)
|
||||
|
||||
local log_message
|
||||
local chat_message
|
||||
|
|
Loading…
Add table
Reference in a new issue