Skip to content
This repository was archived by the owner on Jan 13, 2023. It is now read-only.

Commit f5d2280

Browse files
committed
I think it is last code update for 1.6
1 parent f68cae9 commit f5d2280

File tree

11 files changed

+3
-6
lines changed

11 files changed

+3
-6
lines changed
0 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
238 Bytes
Binary file not shown.
Binary file not shown.

.gradle/file-system.probe

0 Bytes
Binary file not shown.
File renamed without changes.

spigot images/Update.png

13.3 KB
Loading

src/main/java/ru/enis/ehidetags/misc/Color.java

+3-6
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,15 @@
55
import ru.enis.ehidetags.Core;
66

77
public class Color {
8-
private static final LegacyComponentSerializer HexSerializer = LegacyComponentSerializer.builder().hexColors().useUnusualXRepeatedCharacterHexFormat().build();
9-
private static final LegacyComponentSerializer AmpersandSerializer = LegacyComponentSerializer.builder().character('&').build();
8+
private static final LegacyComponentSerializer LegacySerializer = LegacyComponentSerializer.legacyAmpersand();
9+
private static final LegacyComponentSerializer HexSerializer = LegacySerializer.toBuilder().hexColors().useUnusualXRepeatedCharacterHexFormat().build();
1010

1111
public static TextComponent ColorFormat(String translate){
1212
if (Core.majorMinecraftVersion() > 15) {
1313
return HexSerializer.deserialize(translate);
1414
} else {
15-
return AmpersandSerializer.deserialize(translate);
15+
return LegacySerializer.deserialize(translate);
1616

1717
}
1818
}
19-
/*
20-
* Здесь будет поддержка HEX цветов
21-
*/
2219
}

0 commit comments

Comments
 (0)