fix rendering of hovers
This commit is contained in:
parent
fd06d7d45f
commit
64b66676e7
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ public class TextSplitter {
|
||||||
StringBuilder codes = new StringBuilder();
|
StringBuilder codes = new StringBuilder();
|
||||||
for (int i = 0; i < split.length; i++) {
|
for (int i = 0; i < split.length; i++) {
|
||||||
fontRenderer.drawString(codes + split[i], (float) x, (float) y + fontRenderer.FONT_HEIGHT * i, color, shadow);
|
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"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue