Fix error on empty slots

This commit is contained in:
SmallJoker 2019-09-07 11:19:49 +02:00
parent ef75690cab
commit 3c46d71707

@ -14,8 +14,8 @@ function upgrade_packs.meta_to_inv(player)
minetest.log("warning", "[upgrade_packs] Failed to deserialize " minetest.log("warning", "[upgrade_packs] Failed to deserialize "
.. "player meta of player " .. player:get_player_name()) .. "player meta of player " .. player:get_player_name())
else else
for i, v in ipairs(list) do for i = 1, 4 do
list[i] = ItemStack(v) list[i] = ItemStack(list[i])
end end
inv:set_list("ugpacks", list) inv:set_list("ugpacks", list)
end end