Skip to content

Commit

Permalink
fix get_string() on wrong variable
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckarooBanzay authored and bell07 committed Jul 2, 2021
1 parent c53158d commit 716a9a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 716a9a3

Please sign in to comment.