diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-29 15:04:58 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-29 15:04:58 +0200 |
commit | 84f177d3911119df066d0b89e67fdb70c503f7ee (patch) | |
tree | bbba214ddd0c9a7efb2999fe74e5f76b098d7598 /src/main/java/at/hannibal2/skyhanni/features/garden | |
parent | ec832b35c4481d759877c6f336697c3a736dc7f2 (diff) | |
download | skyhanni-84f177d3911119df066d0b89e67fdb70c503f7ee.tar.gz skyhanni-84f177d3911119df066d0b89e67fdb70c503f7ee.tar.bz2 skyhanni-84f177d3911119df066d0b89e67fdb70c503f7ee.zip |
Fixed garden timer (for the last 5 seconds before crop milestone level up) showing outside of garden
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/garden')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/GardenCropMilestoneDisplay.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenCropMilestoneDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenCropMilestoneDisplay.kt index 01c5aa174..b1186f533 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenCropMilestoneDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenCropMilestoneDisplay.kt @@ -117,7 +117,8 @@ class GardenCropMilestoneDisplay { @SubscribeEvent fun onOwnInventoryItemUpdate(event: OwnInventorItemUpdateEvent) { - // TODO remove try catch + if (!GardenAPI.inGarden()) return + try { val item = event.itemStack val counter = GardenAPI.readCounter(item) |