Add check
This commit is contained in:
parent
c3472a3580
commit
c4bfe59d2f
5
init.lua
5
init.lua
|
@ -2275,7 +2275,6 @@ end
|
||||||
|
|
||||||
local function init_data(player, name)
|
local function init_data(player, name)
|
||||||
local info = get_player_info(name)
|
local info = get_player_info(name)
|
||||||
local meta = player:get_meta()
|
|
||||||
|
|
||||||
pdata[name] = {
|
pdata[name] = {
|
||||||
filter = "",
|
filter = "",
|
||||||
|
@ -2290,7 +2289,11 @@ local function init_data(player, name)
|
||||||
}
|
}
|
||||||
|
|
||||||
local data = pdata[name]
|
local data = pdata[name]
|
||||||
|
|
||||||
|
if __skinsdb then
|
||||||
|
local meta = player:get_meta()
|
||||||
data.skin_id = tonum(dslz(meta:get_string "skin_id") or 1)
|
data.skin_id = tonum(dslz(meta:get_string "skin_id") or 1)
|
||||||
|
end
|
||||||
|
|
||||||
if data.fs_version < MIN_FORMSPEC_VERSION then return end
|
if data.fs_version < MIN_FORMSPEC_VERSION then return end
|
||||||
|
|
||||||
|
|
Ŝarĝante…
Reference in New Issue