diff options
author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2024-05-01 08:21:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-01 16:21:42 +1000 |
commit | e5dbd02b47d36940a293a2696d20222bfcb50e91 (patch) | |
tree | 10d3b05cc70968440399a8021014d7d1e2e5023e /src/main/java/at | |
parent | a2abc8845169a5bf2f729e629fee5a9c69c938fb (diff) | |
download | skyhanni-e5dbd02b47d36940a293a2696d20222bfcb50e91.tar.gz skyhanni-e5dbd02b47d36940a293a2696d20222bfcb50e91.tar.bz2 skyhanni-e5dbd02b47d36940a293a2696d20222bfcb50e91.zip |
Merge pull request #1604
* fix flicker in tooltip move
* Merge branch 'refs/heads/beta' into fix-tooltip-move
Diffstat (limited to 'src/main/java/at')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryTooltipCompact.kt | 3 |
1 files changed, 1 insertions, 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") } } |