From 71e95d300845ad0c3d4233f7f36698a2fbe61621 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Sun, 10 Jan 2021 01:46:24 +0100 Subject: [PATCH] Code cleaning --- init.lua | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/init.lua b/init.lua index ab79a7e..32b6ac2 100644 --- a/init.lua +++ b/init.lua @@ -2162,19 +2162,15 @@ 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) - data.items_raw = items - search(data) - end + if progressive_mode then + local items = get_filtered_items(player, data) + data.items_raw = items + search(data) + end - set_fs(player) - end) + after(0, set_fs, player) end local function reset_data(data)