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

Merge pull request #92 from AntumMT/player_meta

Set string in PlayerMetaRef instead of in player object attribute
This commit is contained in:
Luke aka SwissalpS 2025-01-10 00:02:37 +01:00 committed by GitHub
commit b30d7b532b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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