mirror of
https://github.com/SmallJoker/upgrade_packs.git
synced 2024-12-22 05:42:26 +01:00
Fix error on empty slots
This commit is contained in:
parent
ef75690cab
commit
3c46d71707
4
api.lua
4
api.lua
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user