diff options
author | Andrew <andrew@epifano.codes> | 2016-02-02 16:37:15 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2016-02-02 16:37:15 +1100 |
commit | 039621dd44a2e07429d34d01832be5a066ba1d32 (patch) | |
tree | dfa7dbece7b173b7665f2bbdc84cd6100ee0349f /src/main/java/org | |
parent | 930a59c68c18129b3d00f61e2237e8d10215093f (diff) | |
download | craftbukkit-039621dd44a2e07429d34d01832be5a066ba1d32.tar craftbukkit-039621dd44a2e07429d34d01832be5a066ba1d32.tar.gz craftbukkit-039621dd44a2e07429d34d01832be5a066ba1d32.tar.lz craftbukkit-039621dd44a2e07429d34d01832be5a066ba1d32.tar.xz craftbukkit-039621dd44a2e07429d34d01832be5a066ba1d32.zip |
Strengthen CraftMetaSkull hasOwner method
Diffstat (limited to 'src/main/java/org')
-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 ead8a98c..ce990254 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() { |