We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1426631 commit 66cf650Copy full SHA for 66cf650
common/src/main/java/com/viaversion/viarewind/utils/ChatUtil.java
@@ -66,7 +66,10 @@ public static String jsonToLegacy(JsonElement component) {
66
try {
67
LEGACY_REWRITER.processText(null, component);
68
String legacy = ComponentUtil.jsonToLegacy(component);
69
- while (legacy.startsWith("§f")) legacy = legacy.substring(2);
+ int attempts = 0;
70
+ while (legacy.startsWith("§f") && attempts++ < 10) {
71
+ legacy = legacy.substring(2);
72
+ }
73
return legacy;
74
} catch (Exception ex) {
75
if (!Via.getConfig().isSuppressConversionWarnings()) {
0 commit comments