Fix GuiDraw.getStringWidth with bold formatting

This commit is contained in:
Chicken-Bomes committed 2015-04-24 17:53:39 +10:00
1 parent 65a89cc92c
commit 16f0b50920
1 file changed
+1 -4
+1 -4
View File
@@ -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() {