aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/cc')
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/hud/TextHud.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/hud/TextHud.java b/src/main/java/cc/polyfrost/oneconfig/hud/TextHud.java
index 99df46b..7c3c70b 100644
--- a/src/main/java/cc/polyfrost/oneconfig/hud/TextHud.java
+++ b/src/main/java/cc/polyfrost/oneconfig/hud/TextHud.java
@@ -25,6 +25,7 @@ public abstract class TextHud extends BasicHud {
@Override
public void draw(int x, int y, float scale) {
int textY = y;
+ width = 0;
for (String line : getLines()) {
RenderManager.drawScaledString(line, x, textY, 0xffffff, false, scale);
width = Math.max(width, UMinecraft.getFontRenderer().getStringWidth(line));