This commit is contained in:
powercas_gamer 2023-06-24 10:12:06 +02:00 committed by GitHub
parent 35dfc2c8f5
commit 7297fb862c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4153,8 +4153,8 @@ public interface Message {
);
static Component formatColoredValue(String value) {
boolean containsLegacyFormattingCharacter = value.indexOf(LegacyComponentSerializer.AMPERSAND_CHAR) != 1
|| value.indexOf(LegacyComponentSerializer.SECTION_CHAR) != 1;
boolean containsLegacyFormattingCharacter = value.indexOf(LegacyComponentSerializer.AMPERSAND_CHAR) != -1
|| value.indexOf(LegacyComponentSerializer.SECTION_CHAR) != -1;
HoverEvent<Component> hover = HoverEvent.showText(text(value, WHITE));