Code cleaning
This commit is contained in:
parent
ece5223f24
commit
71e95d3008
8
init.lua
8
init.lua
|
@ -2162,10 +2162,7 @@ local function init_data(player, name)
|
|||
local data = pdata[name]
|
||||
data.skin_id = tonum(dslz(meta:get_string "skin_id") or 1)
|
||||
|
||||
after(0, function()
|
||||
if data.fs_version < MIN_FORMSPEC_VERSION then
|
||||
return outdated(name)
|
||||
end
|
||||
if data.fs_version < MIN_FORMSPEC_VERSION then return end
|
||||
|
||||
if progressive_mode then
|
||||
local items = get_filtered_items(player, data)
|
||||
|
@ -2173,8 +2170,7 @@ local function init_data(player, name)
|
|||
search(data)
|
||||
end
|
||||
|
||||
set_fs(player)
|
||||
end)
|
||||
after(0, set_fs, player)
|
||||
end
|
||||
|
||||
local function reset_data(data)
|
||||
|
|
Ŝarĝante…
Reference in New Issue