aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-06-05 14:31:08 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-06-05 14:31:08 +0200
commitf72e776d5d3f7da6d23c48f6e72290f2ac58b3fe (patch)
treefd95fa0954e191aeeedd70abd09c67678c7b97e4 /src
parent2e19b6146d189175f682f703afe7fdcf04a9e629 (diff)
parent4c8b01844dd2cd92212aa74a11b70c9e39cc3dfe (diff)
downloadskyhanni-f72e776d5d3f7da6d23c48f6e72290f2ac58b3fe.tar.gz
skyhanni-f72e776d5d3f7da6d23c48f6e72290f2ac58b3fe.tar.bz2
skyhanni-f72e776d5d3f7da6d23c48f6e72290f2ac58b3fe.zip
Merge remote-tracking branch 'origin/beta' into beta
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]!!