mirror of
https://github.com/SmallJoker/upgrade_packs.git
synced 2024-12-21 21:32:23 +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 "
|
||||
.. "player meta of player " .. player:get_player_name())
|
||||
else
|
||||
for i, v in ipairs(list) do
|
||||
list[i] = ItemStack(v)
|
||||
end
|
||||
inv:set_list("ugpacks", list)
|
||||
end
|
||||
meta:set_string("upgrade_packs:ugpacks", "")
|
||||
|
Loading…
Reference in New Issue
Block a user