summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2016-02-05 11:44:06 +1100
committermd_5 <git@md-5.net>2016-02-05 11:44:06 +1100
commit69fe73e7d9b4a6f1b8d5219bb89eec53406a8271 (patch)
tree4e17101baeff491d49bb75e8b715df2dc495f41a /src
parent039621dd44a2e07429d34d01832be5a066ba1d32 (diff)
downloadcraftbukkit-69fe73e7d9b4a6f1b8d5219bb89eec53406a8271.tar
craftbukkit-69fe73e7d9b4a6f1b8d5219bb89eec53406a8271.tar.gz
craftbukkit-69fe73e7d9b4a6f1b8d5219bb89eec53406a8271.tar.lz
craftbukkit-69fe73e7d9b4a6f1b8d5219bb89eec53406a8271.tar.xz
craftbukkit-69fe73e7d9b4a6f1b8d5219bb89eec53406a8271.zip
[SPIGOT-1465] Fix skulls with no owner not displaying texture.
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSkull.java2
1 files changed, 1 insertions, 1 deletions
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);