From cfc6076a5e05bcd2eb9b7fe96483be72c12c5253 Mon Sep 17 00:00:00 2001 From: Tellinq <59412384+Tellinq@users.noreply.github.com> Date: Sat, 25 Nov 2023 20:27:25 -0500 Subject: [PATCH] Fix: Boss Bar text position not respecting scale --- src/main/java/org/polyfrost/vanillahud/hud/BossBar.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/polyfrost/vanillahud/hud/BossBar.java b/src/main/java/org/polyfrost/vanillahud/hud/BossBar.java index 723b9fd..ec7f992 100644 --- a/src/main/java/org/polyfrost/vanillahud/hud/BossBar.java +++ b/src/main/java/org/polyfrost/vanillahud/hud/BossBar.java @@ -77,7 +77,7 @@ public void draw(UMatrixStack matrices, float x, float y, float scale, boolean e this.drawHealth(this.getCompleteText(this.getText(example)), this.isBossActive() ? BossStatus.healthScale : 0.8f, 0, this.renderText ? 10 : 0); UGraphics.GL.popMatrix(); if (this.renderText) { - super.draw(matrices, x + this.getWidth(1.0f, example) / 2 - (float) (fontRenderer.getStringWidth(this.getCompleteText(this.getText(example))) / 2), y, scale, example); + super.draw(matrices, x + this.getWidth(scale, example) / 2 - (float) (fontRenderer.getStringWidth(this.getCompleteText(this.getText(example))) / 2), y, scale, example); } }