From fd764e2e36c2c9dbe11251ebe50c1a654b45a285 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Thu, 31 Dec 2020 00:11:36 +0100 Subject: [PATCH] Minor fix 2 --- init.lua | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/init.lua b/init.lua index 773cedb..8ac26a5 100644 --- a/init.lua +++ b/init.lua @@ -1960,15 +1960,13 @@ end on_mods_loaded(get_init_items) on_joinplayer(function(player) - after(0, function() - local name = player:get_player_name() - init_data(player, name) - local data = pdata[name] + local name = player:get_player_name() + init_data(player, name) + local data = pdata[name] - if data.fs_version < MIN_FORMSPEC_VERSION then - outdated(name) - end - end) + if data.fs_version < MIN_FORMSPEC_VERSION then + outdated(name) + end end) on_receive_fields(function(player, formname, _f)