From 4c8b01844dd2cd92212aa74a11b70c9e39cc3dfe Mon Sep 17 00:00:00 2001 From: CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> Date: Mon, 5 Jun 2023 22:18:28 +1000 Subject: pet item fix (#218) --- .../java/at/hannibal2/skyhanni/features/garden/GardenLevelDisplay.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main') diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenLevelDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenLevelDisplay.kt index 8948c88e7..30d2a4cbb 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenLevelDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenLevelDisplay.kt @@ -35,7 +35,7 @@ class GardenLevelDisplay { @SubscribeEvent(receiveCanceled = true) fun onChatMessage(event: LorenzChatEvent) { - if (!isEnabled()) return + if (!GardenAPI.inGarden()) return visitorRewardPattern.matchMatcher(event.message) { addExp(group("exp").toInt()) @@ -59,7 +59,7 @@ class GardenLevelDisplay { @SubscribeEvent fun onInventoryOpen(event: InventoryOpenEvent) { - if (!isEnabled()) return + if (!GardenAPI.inGarden()) return if (event.inventoryName != "Desk") return val item = event.inventoryItems[4]!! -- cgit