From e5dbd02b47d36940a293a2696d20222bfcb50e91 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal002@users.noreply.github.com> Date: Wed, 1 May 2024 08:21:42 +0200 Subject: Merge pull request #1604 * fix flicker in tooltip move * Merge branch 'refs/heads/beta' into fix-tooltip-move --- .../inventory/chocolatefactory/ChocolateFactoryTooltipCompact.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryTooltipCompact.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryTooltipCompact.kt index 212d9c130..150fcdf02 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryTooltipCompact.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryTooltipCompact.kt @@ -10,7 +10,6 @@ import at.hannibal2.skyhanni.utils.RenderUtils.renderStrings import at.hannibal2.skyhanni.utils.SimpleTimeMark import net.minecraftforge.fml.common.eventhandler.EventPriority import net.minecraftforge.fml.common.eventhandler.SubscribeEvent -import kotlin.time.Duration.Companion.milliseconds import kotlin.time.Duration.Companion.seconds object ChocolateFactoryTooltipCompact { @@ -42,7 +41,7 @@ object ChocolateFactoryTooltipCompact { fun onBackgroundDraw(event: GuiRenderEvent.ChestGuiOverlayRenderEvent) { if (!ChocolateFactoryAPI.inChocolateFactory) return if (config.tooltipMove) { - if (lastHover.passedSince() < 300.milliseconds) { + if (lastHover.passedSince() < 1.seconds) { config.tooltipMovePosition.renderStrings(tooltipToHover, posLabel = "Tooltip Move") } } -- cgit