From c4bfe59d2f5ceacdadfece17dd09f1bcf7420c0b Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Thu, 14 Jan 2021 15:09:09 +0100 Subject: [PATCH] Add check --- init.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 39f4b6f..2401201 100644 --- a/init.lua +++ b/init.lua @@ -2275,7 +2275,6 @@ end local function init_data(player, name) local info = get_player_info(name) - local meta = player:get_meta() pdata[name] = { filter = "", @@ -2290,7 +2289,11 @@ local function init_data(player, 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