From e8fbf0ccf9a646dfb97b7b860b7b3f6a65e395c8 Mon Sep 17 00:00:00 2001 From: DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> Date: Sun, 5 Jun 2022 18:13:48 +0200 Subject: oopsie coding monkey make mistaky --- src/main/java/cc/polyfrost/oneconfig/hud/TextHud.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/java/cc/polyfrost') 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)); -- cgit