mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-02 09:21:57 +01:00
SPIGOT-7791: Skull BlockState with null profile causes NullPointerException
By: md_5 <git@md-5.net>
This commit is contained in:
parent
7e7632f81a
commit
7667932681
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue