Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-16 11:30:06 +01:00
SPIGOT-4363: Bad colours in leather armor
Dieser Commit ist enthalten in:
Ursprung
953e1d601a
Commit
1cead6280f
@ -36,7 +36,11 @@ class CraftMetaLeatherArmor extends CraftMetaItem implements LeatherArmorMeta {
|
||||
if (tag.hasKey(DISPLAY.NBT)) {
|
||||
NBTTagCompound display = tag.getCompound(DISPLAY.NBT);
|
||||
if (display.hasKey(COLOR.NBT)) {
|
||||
color = Color.fromRGB(display.getInt(COLOR.NBT));
|
||||
try {
|
||||
color = Color.fromRGB(display.getInt(COLOR.NBT));
|
||||
} catch (IllegalArgumentException ex) {
|
||||
// Invalid colour
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren