修复耐力条渲染bug

This commit is contained in:
17146 2025-04-14 20:27:40 +08:00 committed by Light_Quanta
parent 7650ea3874
commit ad16fec9bf
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959

View file

@ -57,6 +57,8 @@ public class StaminaOverlay implements LayeredDraw.Layer {
RenderHelper.fill(guiGraphics, RenderType.guiOverlay(), (float) w / 2 - 64, h - 48, (float) w / 2 + 64, h - 49, -90, -16777216); RenderHelper.fill(guiGraphics, RenderType.guiOverlay(), (float) w / 2 - 64, h - 48, (float) w / 2 + 64, h - 49, -90, -16777216);
RenderHelper.fill(guiGraphics, RenderType.guiOverlay(), (float) w / 2 - 64, (float) (h - 48), (float) (w / 2 + 64 - (1.28 * ClientEventHandler.stamina)), h - 49, -90, -1); RenderHelper.fill(guiGraphics, RenderType.guiOverlay(), (float) w / 2 - 64, (float) (h - 48), (float) (w / 2 + 64 - (1.28 * ClientEventHandler.stamina)), h - 49, -90, -1);
RenderSystem.setShaderColor(1, 1, 1, 1);
guiGraphics.pose().popPose(); guiGraphics.pose().popPose();
} }