From 84f177d3911119df066d0b89e67fdb70c503f7ee Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Wed, 29 Mar 2023 15:04:58 +0200 Subject: Fixed garden timer (for the last 5 seconds before crop milestone level up) showing outside of garden --- .../hannibal2/skyhanni/features/garden/GardenCropMilestoneDisplay.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features/garden') 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) -- cgit