fix get_string() on wrong variable

This commit is contained in:
Buckaroo Banzai 2021-07-02 07:28:12 +02:00 committed by bell07
parent c53158d159
commit 716a9a3f9a

View File

@ -5,7 +5,7 @@ function skins.get_player_skin(player)
local meta = player:get_meta()
if meta:get("skinsdb:skin_key") then
-- Move player data prior July 2018 to mod storage
storage:set_string(player:get_player_name(), player:get_string("skinsdb:skin_key"))
storage:set_string(player:get_player_name(), meta:get_string("skinsdb:skin_key"))
meta:set_string("skinsdb:skin_key", "")
end
local skin = storage:get_string(player:get_player_name())