mirror of
https://github.com/GTNewHorizons/CodeChickenCore.git
synced 2026-11-11 15:57:42 +00:00
Fix GuiDraw.getStringWidth with bold formatting
This commit is contained in:
1 parent
65a89cc92c
commit
16f0b50920
1 file changed
+1
-4
@@ -92,11 +92,8 @@ public class GuiDraw
|
||||
drawStringR(text, x, y, colour, true);
|
||||
}
|
||||
|
||||
|
||||
public static int getStringWidth(String s) {
|
||||
if (s == null || s.equals(""))
|
||||
return 0;
|
||||
return fontRenderer.getStringWidth(EnumChatFormatting.getTextWithoutFormattingCodes(s));
|
||||
return fontRenderer.getStringWidth(s);
|
||||
}
|
||||
|
||||
public static Dimension displaySize() {
|
||||
|
||||
Reference in new issue
Block a user