Minor fix 2

This commit is contained in:
Jean-Patrick Guerrero 2020-12-31 00:11:36 +01:00
parent d6083e2c03
commit fd764e2e36
1 changed files with 6 additions and 8 deletions

View File

@ -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)