From 69fe73e7d9b4a6f1b8d5219bb89eec53406a8271 Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 5 Feb 2016 11:44:06 +1100 Subject: [SPIGOT-1465] Fix skulls with no owner not displaying texture. --- src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSkull.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSkull.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSkull.java index ce990254..8355d6ca 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSkull.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSkull.java @@ -71,7 +71,7 @@ class CraftMetaSkull extends CraftMetaItem implements SkullMeta { void applyToItem(NBTTagCompound tag) { super.applyToItem(tag); - if (hasOwner()) { + if (profile != null) { NBTTagCompound owner = new NBTTagCompound(); GameProfileSerializer.serialize(owner, profile); tag.set(SKULL_OWNER.NBT, owner); -- cgit v1.2.3