diff options
author | Thinkofdeath <thinkofdeath@spigotmc.org> | 2014-12-03 19:04:19 +0000 |
---|---|---|
committer | Thinkofdeath <thinkofdeath@spigotmc.org> | 2014-12-03 19:04:19 +0000 |
commit | 200ae2b6ace92fee8ed9b0c6cbec6973e442d4ea (patch) | |
tree | 3b05bcf11bb4c9f6b0d3ff16d5609c58d75240b7 | |
parent | 4c02ffcaf34bb6b350b1a39ed9bac1e6b3285fe2 (diff) | |
download | craftbukkit-200ae2b6ace92fee8ed9b0c6cbec6973e442d4ea.tar craftbukkit-200ae2b6ace92fee8ed9b0c6cbec6973e442d4ea.tar.gz craftbukkit-200ae2b6ace92fee8ed9b0c6cbec6973e442d4ea.tar.lz craftbukkit-200ae2b6ace92fee8ed9b0c6cbec6973e442d4ea.tar.xz craftbukkit-200ae2b6ace92fee8ed9b0c6cbec6973e442d4ea.zip |
Fix a issue with skulls that have a blank owner
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSkull.java | 2 |
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 1d30e5e1..89912bcf 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSkull.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSkull.java @@ -34,7 +34,7 @@ class CraftMetaSkull extends CraftMetaItem implements SkullMeta { if (tag.hasKeyOfType(SKULL_OWNER.NBT, 10)) { profile = GameProfileSerializer.deserialize(tag.getCompound(SKULL_OWNER.NBT)); - } else if (tag.hasKeyOfType(SKULL_OWNER.NBT, 8)) { + } else if (tag.hasKeyOfType(SKULL_OWNER.NBT, 8) && !tag.getString(SKULL_OWNER.NBT).isEmpty()) { profile = new GameProfile(null, tag.getString(SKULL_OWNER.NBT)); } } |