mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-03-21 15:21:21 +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
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local all_inventory = collect_all_items(player)
|
local all_items = collect_all_items(player)
|
||||||
if bones_mode == "bones" and #all_inventory > 0 then
|
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)
|
bones_mode, bones_pos, bones_inv, bones_meta = find_node_for_bones_on_player_death(player, player_pos)
|
||||||
end
|
end
|
||||||
if bones_mode == "drop" and #all_inventory > 0 then
|
if bones_mode == "drop" and #all_items > 0 then
|
||||||
all_inventory.insert(all_inventory,ItemStack("bones:bones"))
|
table.insert(all_items, ItemStack("bones:bones"))
|
||||||
end
|
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 log_message
|
||||||
local chat_message
|
local chat_message
|
||||||
|
|
Loading…
Add table
Reference in a new issue