3
0
Mirror von https://github.com/ViaVersion/ViaBackwards.git synchronisiert 2024-10-03 00:50:05 +02:00

Fix chat type style

Dieser Commit ist enthalten in:
Gero 2022-07-01 10:19:54 +02:00
Ursprung a856658399
Commit 41e4172136

Datei anzeigen

@ -348,11 +348,11 @@ public final class Protocol1_18_2To1_19 extends BackwardsProtocol<ClientboundPac
if (style != null) {
StringTag color = style.get("color");
if (color != null && NamedTextColor.NAMES.value(color.getValue()) != null) {
component.color(NamedTextColor.NAMES.value(color.getValue()));
component = component.color(NamedTextColor.NAMES.value(color.getValue()));
}
for (String key : TextDecoration.NAMES.keys()) {
if (style.contains(key) && style.<ByteTag> get(key).asByte() == 1) {
component.decorate(TextDecoration.NAMES.value(key));
component = component.decorate(TextDecoration.NAMES.value(key));
}
}
}