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:
parent
f7d5164559
commit
e5119cad05
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user