1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2025-01-21 05:40:20 +01:00

Set string in PlayerMetaRef instead of in player object attribute

This commit is contained in:
Jordan Irwin 2021-05-13 16:30:08 -07:00
parent f7d5164559
commit e5119cad05
No known key found for this signature in database
GPG Key ID: E3E358C2F44C290A

View File

@ -71,9 +71,9 @@ local function set_player_skin(player, skin, save)
if save and not skinsdb_mod_path then if save and not skinsdb_mod_path then
if skin == default_skin then if skin == default_skin then
player:set_attribute("homedecor:player_skin", "") player:get_meta():set_string("homedecor:player_skin", "")
else else
player:set_attribute("homedecor:player_skin", skin) player:get_meta():set_string("homedecor:player_skin", skin)
end end
end end
end end