3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-20 21:40:06 +01:00

Fix a issue with skulls that have a blank owner

Dieser Commit ist enthalten in:
Thinkofdeath 2014-12-03 19:04:19 +00:00
Ursprung 4c02ffcaf3
Commit 200ae2b6ac

Datei anzeigen

@ -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));
} }
} }