diff --git a/src/main/java/net/torocraft/torohealth/bars/HealthBarRenderer.java b/src/main/java/net/torocraft/torohealth/bars/HealthBarRenderer.java index 10ec0cac..15a6dd1d 100644 --- a/src/main/java/net/torocraft/torohealth/bars/HealthBarRenderer.java +++ b/src/main/java/net/torocraft/torohealth/bars/HealthBarRenderer.java @@ -171,8 +171,8 @@ private static void drawBar(Matrix4f matrix4f, double x, double y, float width, int color, int zOffset, boolean inWorld) { float c = 0.00390625F; int u = 0; - int v = 6 * 5 * 2 + 5; - int uw = MathHelper.ceil(92 * percent); + int v = 6 * 5 * 2 + 5 + (inWorld ? 70 : 0); + int uw = MathHelper.ceil((inWorld ? 41 : 131) * percent); int vh = 5; double size = percent * width; @@ -187,6 +187,7 @@ private static void drawBar(Matrix4f matrix4f, double x, double y, float width, RenderSystem.setShaderTexture(0, GUI_BARS_TEXTURES); RenderSystem.enableBlend(); + float half = width / 2; float zOffsetAmount = inWorld ? -0.1F : 0.1F; diff --git a/src/main/resources/assets/torohealth/textures/gui/bars.png b/src/main/resources/assets/torohealth/textures/gui/bars.png index f24921a4..cadf1572 100644 Binary files a/src/main/resources/assets/torohealth/textures/gui/bars.png and b/src/main/resources/assets/torohealth/textures/gui/bars.png differ