Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-10-03 08:51:05 +02:00
Fix chat type style
Dieser Commit ist enthalten in:
Ursprung
a856658399
Commit
41e4172136
@ -348,11 +348,11 @@ public final class Protocol1_18_2To1_19 extends BackwardsProtocol<ClientboundPac
|
|||||||
if (style != null) {
|
if (style != null) {
|
||||||
StringTag color = style.get("color");
|
StringTag color = style.get("color");
|
||||||
if (color != null && NamedTextColor.NAMES.value(color.getValue()) != null) {
|
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()) {
|
for (String key : TextDecoration.NAMES.keys()) {
|
||||||
if (style.contains(key) && style.<ByteTag> get(key).asByte() == 1) {
|
if (style.contains(key) && style.<ByteTag> get(key).asByte() == 1) {
|
||||||
component.decorate(TextDecoration.NAMES.value(key));
|
component = component.decorate(TextDecoration.NAMES.value(key));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren