mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-02 13:07:06 +01:00
Fix Skull BlockState setting illegal values on owner.
This commit is contained in:
parent
8292b73f30
commit
f726d07f11
1 changed files with 2 additions and 2 deletions
|
@ -148,7 +148,7 @@ public class CraftSkull extends CraftBlockState implements Skull {
|
|||
}
|
||||
|
||||
public boolean setOwner(String name) {
|
||||
if (name != null && name.length() > MAX_OWNER_LENGTH) {
|
||||
if (name == null || name.length() > MAX_OWNER_LENGTH) {
|
||||
return false;
|
||||
}
|
||||
player = name;
|
||||
|
@ -176,7 +176,7 @@ public class CraftSkull extends CraftBlockState implements Skull {
|
|||
this.skullType = skullType;
|
||||
|
||||
if (skullType != SkullType.PLAYER) {
|
||||
player = null;
|
||||
player = "";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue