mirror of
https://github.com/minetest/minetest_game.git
synced 2025-01-08 22:50:16 +01:00
Fix table.insert
usage
This commit is contained in:
parent
224ae80626
commit
bd60bfb549
@ -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…
Reference in New Issue
Block a user