mirror of
https://github.com/minetest-mods/i3.git
synced 2025-02-04 22:40:22 +01:00
Code cleaning
This commit is contained in:
parent
ece5223f24
commit
71e95d3008
18
init.lua
18
init.lua
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user