Proper shouldRenderTooltips call

This commit is contained in:
DBotThePony 2023-08-21 13:32:01 +07:00
parent c7442e4ad2
commit 93783a4210
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -83,7 +83,7 @@ open class ProgressGaugePanel<out S : Screen>(
}
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
}