Skip to content

Commit

Permalink
Set string in PlayerMetaRef instead of in player object attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
AntumDeluge committed Jan 6, 2025
1 parent f7d5164 commit 688a3c9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions homedecor_wardrobe/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,11 @@ local function set_player_skin(player, skin, save)

if save and not skinsdb_mod_path then

local pmeta = player:get_meta()
if skin == default_skin then
player:set_attribute("homedecor:player_skin", "")
pmeta:set_string("homedecor:player_skin", "")
else
player:set_attribute("homedecor:player_skin", skin)
pmeta:set_string("homedecor:player_skin", skin)
end
end
end
Expand Down

0 comments on commit 688a3c9

Please sign in to comment.