mirror of
https://github.com/SmallJoker/upgrade_packs.git
synced 2024-11-19 22:13:52 +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 "
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user