From 93783a42107a7cba08138ca23e64cddfe2363655 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Mon, 21 Aug 2023 13:32:01 +0700 Subject: [PATCH] Proper shouldRenderTooltips call --- .../mc/otm/client/screen/widget/ProgressGaugePanel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/widget/ProgressGaugePanel.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/widget/ProgressGaugePanel.kt index 3bb7a8b89..790691806 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/widget/ProgressGaugePanel.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/client/screen/widget/ProgressGaugePanel.kt @@ -83,7 +83,7 @@ open class ProgressGaugePanel( } override fun innerRenderTooltips(graphics: GuiGraphics, mouseX: Float, mouseY: Float, partialTick: Float): Boolean { - if (isHovered) { + if (shouldRenderTooltips(graphics, mouseX, mouseY, partialTick)) { graphics.renderComponentTooltip(font, makeTooltip(), mouseX.toInt(), mouseY.toInt()) return true }