Saving p_items not necessary

This commit is contained in:
Jean-Patrick Guerrero 2019-01-30 02:14:11 +01:00
parent fd375c92b3
commit 5e8079b2e8

View File

@ -633,16 +633,8 @@ local function init_data(player, name)
if progressive_mode then if progressive_mode then
local meta = player:get_meta() local meta = player:get_meta()
player_data[name].inv_items = deserialize(meta:get_string("inv_items")) player_data[name].inv_items = deserialize(meta:get_string("inv_items"))
p_items = get_progressive_items(player, name) p_items = get_progressive_items(player, name)
if p_items then
local old_items = deserialize(meta:get_string("p_items"))
if old_items then
p_items = table_merge(p_items, old_items)
p_items = table_clean(p_items)
end
end
player_data[name].p_items = p_items player_data[name].p_items = p_items
end end
@ -962,7 +954,6 @@ end)
local function save_meta(player, data) local function save_meta(player, data)
local meta = player:get_meta() local meta = player:get_meta()
meta:set_string("p_items", serialize(data.p_items))
meta:set_string("inv_items", serialize(data.inv_items)) meta:set_string("inv_items", serialize(data.inv_items))
end end