aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc
diff options
context:
space:
mode:
authorDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-06-05 18:13:48 +0200
committerDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-06-05 18:13:48 +0200
commite8fbf0ccf9a646dfb97b7b860b7b3f6a65e395c8 (patch)
tree386b346c30f3492e792c2348d566b0d0bafc8287 /src/main/java/cc
parent1a882c234c8e2e352cad8c820567bbe140355675 (diff)
downloadOneConfig-e8fbf0ccf9a646dfb97b7b860b7b3f6a65e395c8.tar.gz
OneConfig-e8fbf0ccf9a646dfb97b7b860b7b3f6a65e395c8.tar.bz2
OneConfig-e8fbf0ccf9a646dfb97b7b860b7b3f6a65e395c8.zip
oopsie coding monkey make mistaky
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));