geforkt von Mirrors/Paper
SPIGOT-7791: Skull BlockState with null profile causes NullPointerException
By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Ursprung
7e7632f81a
Commit
7667932681
@ -187,7 +187,7 @@ public class CraftSkull extends CraftBlockEntityState<TileEntitySkull> implement
|
||||
super.applyTo(skull);
|
||||
|
||||
if (getSkullType() == SkullType.PLAYER) {
|
||||
skull.setOwner(new ResolvableProfile(profile));
|
||||
skull.setOwner((profile != null) ? new ResolvableProfile(profile) : null);
|
||||
}
|
||||
}
|
||||
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren