aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2023-06-05 22:18:28 +1000
committerGitHub <noreply@github.com>2023-06-05 14:18:28 +0200
commit4c8b01844dd2cd92212aa74a11b70c9e39cc3dfe (patch)
tree09c78ae1b7b8fec0746d5cbae51c7cb06c6a4677 /src
parent422d4dd7ab9096d639fe98a9da750f9feaabc848 (diff)
downloadskyhanni-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.kt4
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]!!