Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
(cherry picked from commit 90dbd3c)
  • Loading branch information
deirn committed Jul 26, 2024
1 parent ffd2e66 commit b430e50
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public void onAfterTooltipRender(GuiGraphics ctx, Rectangle rect, ICommonAccesso
var gameMode = Objects.requireNonNull(Minecraft.getInstance().gameMode);
var gameModeAccess = (MultiPlayerGameModeAccess) gameMode;

var dt = Minecraft.getInstance().getTimer().getRealtimeDeltaTicks();
var dt = Minecraft.getInstance().getDeltaFrameTime();

var isBreaking = gameMode.isDestroying();
var targetProgress = gameModeAccess.wthit_destroyProgress();
Expand Down Expand Up @@ -109,10 +109,10 @@ private void fill(GuiGraphics ctx, float x1, float y1, float x2, float y2, int c
}

var vertexConsumer = ctx.bufferSource().getBuffer(RenderType.gui());
vertexConsumer.addVertex(matrix4f, x1, y1, 0f).setColor(color);
vertexConsumer.addVertex(matrix4f, x1, y2, 0f).setColor(color);
vertexConsumer.addVertex(matrix4f, x2, y2, 0f).setColor(color);
vertexConsumer.addVertex(matrix4f, x2, y1, 0f).setColor(color);
vertexConsumer.vertex(matrix4f, x1, y1, 0f).color(color).endVertex();
vertexConsumer.vertex(matrix4f, x1, y2, 0f).color(color).endVertex();
vertexConsumer.vertex(matrix4f, x2, y2, 0f).color(color).endVertex();
vertexConsumer.vertex(matrix4f, x2, y1, 0f).color(color).endVertex();
}

}

0 comments on commit b430e50

Please sign in to comment.