From 03904d8c1a2303116171599c312f8802024e7e7b Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sun, 23 Apr 2023 01:01:21 +0200 Subject: crop milestone warn close no longer works when crop milestone inventory is not opened at least once --- .../skyhanni/features/garden/farming/GardenCropMilestoneDisplay.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni') diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropMilestoneDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropMilestoneDisplay.kt index b8512fe4b..2adc340c0 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropMilestoneDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropMilestoneDisplay.kt @@ -37,7 +37,6 @@ class GardenCropMilestoneDisplay { private val bestCropTime = GardenBestCropTime() private var lastPlaySoundTime = 0L - private var needsInventory = false companion object { @@ -303,7 +302,9 @@ class GardenCropMilestoneDisplay { lastPlaySoundTime = System.currentTimeMillis() SoundUtils.playBeepSound() } - TitleUtils.sendTitle("§b${crop.cropName} $nextTier in $duration", 1_500) + if (!needsInventory) { + TitleUtils.sendTitle("§b${crop.cropName} $nextTier in $duration", 1_500) + } } } lineMap[3] = Collections.singletonList("§7In §b$duration") -- cgit