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 "
.. "player meta of player " .. player:get_player_name())
else
for i, v in ipairs(list) do
list[i] = ItemStack(v)
for i = 1, 4 do
list[i] = ItemStack(list[i])
end
inv:set_list("ugpacks", list)
end