forked from Upstream/mmocore
Party player head texture is now async
This commit is contained in:
parent
349735395e
commit
68c40816a3
@ -65,10 +65,11 @@ public class EditablePartyView extends EditableInventory {
|
|||||||
/*
|
/*
|
||||||
* run async to save performance
|
* run async to save performance
|
||||||
*/
|
*/
|
||||||
if (meta instanceof SkullMeta) {
|
if (meta instanceof SkullMeta)
|
||||||
|
Bukkit.getScheduler().runTaskAsynchronously(MMOCore.plugin, () -> {
|
||||||
((SkullMeta) meta).setOwningPlayer(member.getPlayer());
|
((SkullMeta) meta).setOwningPlayer(member.getPlayer());
|
||||||
disp.setItemMeta(meta);
|
disp.setItemMeta(meta);
|
||||||
}
|
});
|
||||||
|
|
||||||
return NBTItem.get(disp).addTag(new ItemTag("uuid", member.getUniqueId().toString())).toItem();
|
return NBTItem.get(disp).addTag(new ItemTag("uuid", member.getUniqueId().toString())).toItem();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user