diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-04-05 18:42:41 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-04-05 18:42:41 +0200 |
commit | c2cbd377bc172a2fae07cbd162bff312d4598009 (patch) | |
tree | 2082126143812eb0a582d00df9366be058ad7413 /src/main/java/at/hannibal2/skyhanni/features/garden | |
parent | 31fa031485a3cb59d8a57081cad25c7650df9f14 (diff) | |
download | skyhanni-c2cbd377bc172a2fae07cbd162bff312d4598009.tar.gz skyhanni-c2cbd377bc172a2fae07cbd162bff312d4598009.tar.bz2 skyhanni-c2cbd377bc172a2fae07cbd162bff312d4598009.zip |
code cleanup
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/garden')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/pests/PestAPI.kt | 15 |
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(" ") } } } |