mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-27 13:06:02 +01:00
[SPIGOT-1465] Fix skulls with no owner not displaying texture.
This commit is contained in:
parent
039621dd44
commit
69fe73e7d9
@ -71,7 +71,7 @@ class CraftMetaSkull extends CraftMetaItem implements SkullMeta {
|
|||||||
void applyToItem(NBTTagCompound tag) {
|
void applyToItem(NBTTagCompound tag) {
|
||||||
super.applyToItem(tag);
|
super.applyToItem(tag);
|
||||||
|
|
||||||
if (hasOwner()) {
|
if (profile != null) {
|
||||||
NBTTagCompound owner = new NBTTagCompound();
|
NBTTagCompound owner = new NBTTagCompound();
|
||||||
GameProfileSerializer.serialize(owner, profile);
|
GameProfileSerializer.serialize(owner, profile);
|
||||||
tag.set(SKULL_OWNER.NBT, owner);
|
tag.set(SKULL_OWNER.NBT, owner);
|
||||||
|
Loading…
Reference in New Issue
Block a user