mirror of
https://github.com/minetest-mods/i3.git
synced 2024-12-27 19:30:40 +01:00
Add check
This commit is contained in:
parent
c3472a3580
commit
c4bfe59d2f
7
init.lua
7
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]
|
||||||
data.skin_id = tonum(dslz(meta:get_string "skin_id") or 1)
|
|
||||||
|
if __skinsdb then
|
||||||
|
local meta = player:get_meta()
|
||||||
|
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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user