mirror of
https://github.com/SmallJoker/upgrade_packs.git
synced 2024-12-22 13:52:29 +01:00
Also fix deserialization
This commit is contained in:
parent
d1bed76864
commit
ef75690cab
3
api.lua
3
api.lua
@ -14,6 +14,9 @@ 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
|
||||||
|
list[i] = ItemStack(v)
|
||||||
|
end
|
||||||
inv:set_list("ugpacks", list)
|
inv:set_list("ugpacks", list)
|
||||||
end
|
end
|
||||||
meta:set_string("upgrade_packs:ugpacks", "")
|
meta:set_string("upgrade_packs:ugpacks", "")
|
||||||
|
Loading…
Reference in New Issue
Block a user