mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 10:17:38 +01:00
Fix a issue with skulls that have a blank owner
By: Thinkofdeath <thinkofdeath@spigotmc.org>
This commit is contained in:
parent
f03d75f288
commit
8e686281f5
@ -34,7 +34,7 @@ class CraftMetaSkull extends CraftMetaItem implements SkullMeta {
|
|||||||
|
|
||||||
if (tag.hasKeyOfType(SKULL_OWNER.NBT, 10)) {
|
if (tag.hasKeyOfType(SKULL_OWNER.NBT, 10)) {
|
||||||
profile = GameProfileSerializer.deserialize(tag.getCompound(SKULL_OWNER.NBT));
|
profile = GameProfileSerializer.deserialize(tag.getCompound(SKULL_OWNER.NBT));
|
||||||
} else if (tag.hasKeyOfType(SKULL_OWNER.NBT, 8)) {
|
} else if (tag.hasKeyOfType(SKULL_OWNER.NBT, 8) && !tag.getString(SKULL_OWNER.NBT).isEmpty()) {
|
||||||
profile = new GameProfile(null, tag.getString(SKULL_OWNER.NBT));
|
profile = new GameProfile(null, tag.getString(SKULL_OWNER.NBT));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user