Code cleaning

This commit is contained in:
Jean-Patrick Guerrero 2021-01-10 01:46:24 +01:00
parent ece5223f24
commit 71e95d3008

View File

@ -2162,19 +2162,15 @@ local function init_data(player, name)
local data = pdata[name] local data = pdata[name]
data.skin_id = tonum(dslz(meta:get_string "skin_id") or 1) data.skin_id = tonum(dslz(meta:get_string "skin_id") or 1)
after(0, function() if data.fs_version < MIN_FORMSPEC_VERSION then return end
if data.fs_version < MIN_FORMSPEC_VERSION then
return outdated(name)
end
if progressive_mode then if progressive_mode then
local items = get_filtered_items(player, data) local items = get_filtered_items(player, data)
data.items_raw = items data.items_raw = items
search(data) search(data)
end end
set_fs(player) after(0, set_fs, player)
end)
end end
local function reset_data(data) local function reset_data(data)