From 1b0ed5570b8e37544ceee7f491b5e3518da1f981 Mon Sep 17 00:00:00 2001 From: MisterCheezeCake <75341435+MisterCheezeCake@users.noreply.github.com> Date: Sun, 17 Nov 2024 17:17:25 -0500 Subject: [PATCH] Made bars actually render on 1.21.1 --- src/main/java/wtf/cheeze/sbt/hud/bases/BarHUD.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/wtf/cheeze/sbt/hud/bases/BarHUD.java b/src/main/java/wtf/cheeze/sbt/hud/bases/BarHUD.java index ae9d04f..9298be8 100644 --- a/src/main/java/wtf/cheeze/sbt/hud/bases/BarHUD.java +++ b/src/main/java/wtf/cheeze/sbt/hud/bases/BarHUD.java @@ -46,8 +46,8 @@ public void render(DrawContext context, boolean fromHudScreen, boolean hovered) } //? if =1.21.1 { - var colors = RenderUtils.getColor3f((int) INFO.getColor.get()); - /* if (bounds.scale == 1.0f) { + /*var colors = RenderUtils.getColor3f((int) INFO.getColor.get()); + if (bounds.scale == 1.0f) { context.setShaderColor(colors.red, colors.green, colors.blue, 1.0f); context.drawTexture(UNFILLED, bounds.x, bounds.y, 0, 0, BAR_WIDTH, BAR_HEIGHT, BAR_WIDTH, BAR_HEIGHT); context.drawTexture(FILLED, bounds.x, bounds.y, 0, 0, calculateFill((float) INFO.getFill.get()), BAR_HEIGHT, BAR_WIDTH, BAR_HEIGHT);