Skip to content

Commit

Permalink
Made bars actually render on 1.21.1
Browse files Browse the repository at this point in the history
  • Loading branch information
MisterCheezeCake committed Nov 17, 2024
1 parent 1701ecd commit 1b0ed55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/wtf/cheeze/sbt/hud/bases/BarHUD.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1b0ed55

Please sign in to comment.