mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 08:17:44 +01:00
Fix NPE introduced in #17c30fd
By: Jishuna <joshl5324@gmail.com>
This commit is contained in:
parent
0a971d438b
commit
fa30894970
@ -142,7 +142,7 @@ class CraftMetaSkull extends CraftMetaItem implements SkullMeta {
|
||||
// SPIGOT-6558: Set initial textures
|
||||
tag.put(SKULL_OWNER.NBT, serializedProfile);
|
||||
// Fill in textures
|
||||
PlayerProfile ownerProfile = getOwnerProfile();
|
||||
PlayerProfile ownerProfile = new CraftPlayerProfile(profile); // getOwnerProfile may return null
|
||||
if (ownerProfile.getTextures().isEmpty()) {
|
||||
ownerProfile.update().thenAccept((filledProfile) -> {
|
||||
setOwnerProfile(filledProfile);
|
||||
|
Loading…
Reference in New Issue
Block a user