1
0
mirror of https://github.com/lucko/LuckPerms.git synced 2025-08-31 18:11:44 +02:00
This commit is contained in:
powercas_gamer
2023-06-24 10:12:06 +02:00
committed by GitHub
parent 35dfc2c8f5
commit 7297fb862c

View File

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