From fd6787491b3ee5d53e3b2c952665379e24d0fb6b Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Tue, 2 Feb 2016 16:37:15 +1100 Subject: [PATCH] Strengthen CraftMetaSkull hasOwner method By: Andrew --- .../java/org/bukkit/craftbukkit/inventory/CraftMetaSkull.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSkull.java b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSkull.java index ead8a98c93..ce9902544b 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSkull.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSkull.java @@ -103,7 +103,7 @@ class CraftMetaSkull extends CraftMetaItem implements SkullMeta { } public boolean hasOwner() { - return profile != null; + return profile != null && profile.getName() != null; } public String getOwner() {