mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 03:52:45 +01:00
Strengthen CraftMetaSkull hasOwner method
By: Andrew <andrew@epifano.codes>
This commit is contained in:
parent
9dd1f7fef4
commit
fd6787491b
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ class CraftMetaSkull extends CraftMetaItem implements SkullMeta {
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean hasOwner() {
|
public boolean hasOwner() {
|
||||||
return profile != null;
|
return profile != null && profile.getName() != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getOwner() {
|
public String getOwner() {
|
||||||
|
|
Loading…
Reference in a new issue