Minor fix 2

This commit is contained in:
Jean-Patrick Guerrero 2020-12-31 00:11:36 +01:00
parent d6083e2c03
commit fd764e2e36

@ -1960,15 +1960,13 @@ end
on_mods_loaded(get_init_items) on_mods_loaded(get_init_items)
on_joinplayer(function(player) on_joinplayer(function(player)
after(0, function() local name = player:get_player_name()
local name = player:get_player_name() init_data(player, name)
init_data(player, name) local data = pdata[name]
local data = pdata[name]
if data.fs_version < MIN_FORMSPEC_VERSION then if data.fs_version < MIN_FORMSPEC_VERSION then
outdated(name) outdated(name)
end end
end)
end) end)
on_receive_fields(function(player, formname, _f) on_receive_fields(function(player, formname, _f)