diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-04-23 01:01:21 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-04-23 01:01:21 +0200 |
commit | 03904d8c1a2303116171599c312f8802024e7e7b (patch) | |
tree | 917396e017a971f3f0be17904f8341bfef694033 /src/main/java | |
parent | 05b3c973b082ed09ee4ae1d8300c7e280f103da3 (diff) | |
download | skyhanni-03904d8c1a2303116171599c312f8802024e7e7b.tar.gz skyhanni-03904d8c1a2303116171599c312f8802024e7e7b.tar.bz2 skyhanni-03904d8c1a2303116171599c312f8802024e7e7b.zip |
crop milestone warn close no longer works when crop milestone inventory is not opened at least once
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/farming/GardenCropMilestoneDisplay.kt | 5 |
1 files changed, 3 insertions, 2 deletions
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") |