From 63383c22eb2979979868051bc52417f48f2d3615 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Fri, 21 Feb 2025 21:10:15 +0700 Subject: [PATCH] Fix power gauge in matter entangler recipe category rendering wrong --- src/main/kotlin/ru/dbotthepony/mc/otm/compat/jei/Gauges.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/compat/jei/Gauges.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/compat/jei/Gauges.kt index 8adf016ca..c028fd93d 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/compat/jei/Gauges.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/compat/jei/Gauges.kt @@ -34,7 +34,7 @@ fun renderEnergyGauge( ) { val perc = 1f - ((systemTime.secondsF * drainSpeed) % 1f) PowerGaugePanel.GAUGE_BACKGROUND.render(guiGraphics, x, y, width, height) - PowerGaugePanel.GAUGE_FOREGROUND.renderPartial(guiGraphics, x, y + height * (1f - perc) - 1f, width, height * perc) + PowerGaugePanel.GAUGE_FOREGROUND.renderPartial(guiGraphics, x, y + height * (1f - perc) - 1f, width, height * perc, topDown = false) } fun matterGaugeTooltips(target: ITooltipBuilder, matter: Decimal, mouseX: Double, mouseY: Double, x: Float, y: Float, width: Float = MatterGaugePanel.GAUGE_BACKGROUND.width, height: Float = MatterGaugePanel.GAUGE_BACKGROUND.height) {