diff options
author | CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> | 2023-06-05 22:18:28 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-05 14:18:28 +0200 |
commit | 4c8b01844dd2cd92212aa74a11b70c9e39cc3dfe (patch) | |
tree | 09c78ae1b7b8fec0746d5cbae51c7cb06c6a4677 /src | |
parent | 422d4dd7ab9096d639fe98a9da750f9feaabc848 (diff) | |
download | skyhanni-4c8b01844dd2cd92212aa74a11b70c9e39cc3dfe.tar.gz skyhanni-4c8b01844dd2cd92212aa74a11b70c9e39cc3dfe.tar.bz2 skyhanni-4c8b01844dd2cd92212aa74a11b70c9e39cc3dfe.zip |
pet item fix (#218)
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/GardenLevelDisplay.kt | 4 |
1 files changed, 2 insertions, 2 deletions
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]!! |