aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-10-17 11:50:05 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-10-17 11:50:05 +0200
commite26273f950e292bcfe127a1101306218a2c5e2a2 (patch)
tree93be980d5dd7efdfc7f30bde72c8eadb90540ad3 /src
parentb5a2ce2eefb1ffba24d96cec750d7b2d5577bf93 (diff)
downloadskyhanni-e26273f950e292bcfe127a1101306218a2c5e2a2.tar.gz
skyhanni-e26273f950e292bcfe127a1101306218a2c5e2a2.tar.bz2
skyhanni-e26273f950e292bcfe127a1101306218a2c5e2a2.zip
code cleanup
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/event/diana/DianaAPI.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowParticleFinder.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/event/diana/SoopyGuessBurrow.kt4
3 files changed, 3 insertions, 5 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/diana/DianaAPI.kt b/src/main/java/at/hannibal2/skyhanni/features/event/diana/DianaAPI.kt
index 618265f5a..99795274c 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/event/diana/DianaAPI.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/event/diana/DianaAPI.kt
@@ -15,5 +15,5 @@ object DianaAPI {
fun hasGriffinPet() = ProfileStorageData.profileSpecific?.currentPet?.contains("Griffin") ?: false
- fun featuresEnabled() = isRitualActive() && IslandType.HUB.isInIsland()
+ fun featuresEnabled() = IslandType.HUB.isInIsland() && isRitualActive()
} \ No newline at end of file
diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowParticleFinder.kt b/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowParticleFinder.kt
index deb24b5e8..dcc0e9593 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowParticleFinder.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowParticleFinder.kt
@@ -97,8 +97,8 @@ class GriffinBurrowParticleFinder {
@SubscribeEvent
fun onChatMessage(event: LorenzChatEvent) {
- if (!config.burrowsSoopyGuess) return
if (!DianaAPI.featuresEnabled()) return
+ if (!config.burrowsSoopyGuess) return
val message = event.message
if (message.startsWith("§eYou dug out a Griffin Burrow!") ||
message == "§eYou finished the Griffin burrow chain! §r§7(4/4)"
diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/diana/SoopyGuessBurrow.kt b/src/main/java/at/hannibal2/skyhanni/features/event/diana/SoopyGuessBurrow.kt
index 30dc6bcc3..c994033dd 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/event/diana/SoopyGuessBurrow.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/event/diana/SoopyGuessBurrow.kt
@@ -280,7 +280,5 @@ class SoopyGuessBurrow {
}
}
- private fun isEnabled(): Boolean {
- return DianaAPI.featuresEnabled() && SkyHanniMod.feature.event.diana.burrowsSoopyGuess
- }
+ private fun isEnabled() = DianaAPI.featuresEnabled() && SkyHanniMod.feature.event.diana.burrowsSoopyGuess
} \ No newline at end of file