From 15e7a41f0e97c880f16b94aae77c3e270dda8c06 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sun, 6 Aug 2023 19:50:12 +0200 Subject: Only start detecting trapper mobs when the main toggle is enabled --- .../at/hannibal2/skyhanni/features/misc/trevor/TrevorFeatures.kt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni') 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") -- cgit