From 039621dd44a2e07429d34d01832be5a066ba1d32 Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 2 Feb 2016 16:37:15 +1100 Subject: [PATCH] Strengthen CraftMetaSkull hasOwner method --- .../java/org/bukkit/craftbukkit/inventory/CraftMetaSkull.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSkull.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSkull.java index ead8a98c93..ce9902544b 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSkull.java +++ b/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() {