aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/pests/PestAPI.kt15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/pests/PestAPI.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/pests/PestAPI.kt
index 1af4e43b8..9c595de1e 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/pests/PestAPI.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/pests/PestAPI.kt
@@ -319,9 +319,10 @@ object PestAPI {
event.addIrrelevant("not in garden")
return
}
- if (!config.pestFinder.showDisplay && !config.pestFinder.showPlotInWorld &&
- config.pestFinder.teleportHotkey == Keyboard.KEY_NONE
- ) {
+ val disabled = with(config.pestFinder) {
+ !showDisplay && !showPlotInWorld && teleportHotkey == Keyboard.KEY_NONE
+ }
+ if (disabled) {
event.addIrrelevant("disabled in config")
return
}
@@ -331,10 +332,10 @@ object PestAPI {
add("")
getInfestedPlots().forEach {
add("id: ${it.id}")
- add("name: ${it.name}")
- add("isPestCountInaccurate: ${it.isPestCountInaccurate}")
- add("pests: ${it.pests}")
- add("")
+ add(" name: ${it.name}")
+ add(" isPestCountInaccurate: ${it.isPestCountInaccurate}")
+ add(" pests: ${it.pests}")
+ add(" ")
}
}
}