aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-06 19:50:12 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-06 19:50:12 +0200
commit15e7a41f0e97c880f16b94aae77c3e270dda8c06 (patch)
tree44f30da955fed4225cc882b951b0aa7888dabd60 /src/main/java/at/hannibal2/skyhanni
parent1806a21ae3c45252923f0aa61cb4d5983f653f71 (diff)
downloadskyhanni-15e7a41f0e97c880f16b94aae77c3e270dda8c06.tar.gz
skyhanni-15e7a41f0e97c880f16b94aae77c3e270dda8c06.tar.bz2
skyhanni-15e7a41f0e97c880f16b94aae77c3e270dda8c06.zip
Only start detecting trapper mobs when the main toggle is enabled
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/trevor/TrevorFeatures.kt8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/trevor/TrevorFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/trevor/TrevorFeatures.kt
index 8a16a83b9..61f6fedda 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/misc/trevor/TrevorFeatures.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/misc/trevor/TrevorFeatures.kt
@@ -50,9 +50,11 @@ class TrevorFeatures {
fixedRateTimer(name = "skyhanni-update-trapper", period = 1000L) {
Minecraft.getMinecraft().addScheduledTask {
try {
- if (onFarmingIsland()) {
- updateTrapper()
- TrevorSolver.findMob()
+ if (config.trapperSolver) {
+ if (onFarmingIsland()) {
+ updateTrapper()
+ TrevorSolver.findMob()
+ }
}
} catch (error: Throwable) {
CopyErrorCommand.logError(error, "Encountered an error when updating the trapper solver")