Replace deprecated player attribute calls

This commit is contained in:
Wuzzy 2019-03-06 05:45:16 +01:00
parent 4c8433b41c
commit 2b3922c972
7 changed files with 33 additions and 29 deletions

View file

@ -75,12 +75,12 @@ function mcl_player.player_set_textures(player, textures, preview)
player_textures[name] = textures
player:set_properties({textures = textures,})
if preview then
player:set_attribute("mcl_player:preview", preview)
player:get_meta():set_string("mcl_player:preview", preview)
end
end
function mcl_player.player_get_preview(player)
local preview = player:get_attribute("mcl_player:preview")
local preview = player:get_meta():get_string("mcl_player:preview")
if not preview then
return "player.png"
else