geforkt von Mirrors/Paper
SPIGOT-7621: Fix empty strings in item lore
By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Ursprung
6686458555
Commit
86b52ff618
@ -1643,11 +1643,12 @@ class CraftMetaItem implements ItemMeta, Damageable, Repairable, BlockDataMeta {
|
|||||||
addTo.add(IChatBaseComponent.empty());
|
addTo.add(IChatBaseComponent.empty());
|
||||||
} else {
|
} else {
|
||||||
String entry = object.toString();
|
String entry = object.toString();
|
||||||
|
IChatBaseComponent component = (possiblyJsonInput) ? CraftChatMessage.fromJSONOrString(entry) : CraftChatMessage.fromStringOrNull(entry);
|
||||||
|
|
||||||
if (possiblyJsonInput) {
|
if (component != null) {
|
||||||
addTo.add(CraftChatMessage.fromJSONOrString(entry));
|
addTo.add(component);
|
||||||
} else {
|
} else {
|
||||||
addTo.add(CraftChatMessage.fromStringOrNull(entry));
|
addTo.add(IChatBaseComponent.empty());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren