fix rendering of hovers

This commit is contained in:
Daniella / Tove 2024-05-27 10:26:27 +02:00
parent fd06d7d45f
commit 64b66676e7

View file

@ -45,7 +45,7 @@ public class TextSplitter {
StringBuilder codes = new StringBuilder();
for (int i = 0; i < split.length; i++) {
fontRenderer.drawString(codes + split[i], (float) x, (float) y + fontRenderer.FONT_HEIGHT * i, color, shadow);
codes.append(split[i].replaceAll("[^§]*?(§\\w)[^§]*?", "$1"));
codes.append(split[i].replaceAll("[^§]*?(§\\w)?[^§]*", "$1"));
}
}