Fix NPE introduced in #f4d977e
This commit is contained in:
parent
75502b6ddc
commit
224f733ac1
@ -142,7 +142,7 @@ class CraftMetaSkull extends CraftMetaItem implements SkullMeta {
|
|||||||
// SPIGOT-6558: Set initial textures
|
// SPIGOT-6558: Set initial textures
|
||||||
tag.put(SKULL_OWNER.NBT, serializedProfile);
|
tag.put(SKULL_OWNER.NBT, serializedProfile);
|
||||||
// Fill in textures
|
// Fill in textures
|
||||||
PlayerProfile ownerProfile = getOwnerProfile();
|
PlayerProfile ownerProfile = new CraftPlayerProfile(profile); // getOwnerProfile may return null
|
||||||
if (ownerProfile.getTextures().isEmpty()) {
|
if (ownerProfile.getTextures().isEmpty()) {
|
||||||
ownerProfile.update().thenAccept((filledProfile) -> {
|
ownerProfile.update().thenAccept((filledProfile) -> {
|
||||||
setOwnerProfile(filledProfile);
|
setOwnerProfile(filledProfile);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user