diff options
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/pests/PestFinder.kt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/pests/PestFinder.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/pests/PestFinder.kt index ad4f97626..cc7019cf1 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/pests/PestFinder.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/pests/PestFinder.kt @@ -141,13 +141,13 @@ class PestFinder { } } - resetAllPests(newPests) - - if (newPests == PestAPI.scoreboardPests) return + if (newPests != PestAPI.scoreboardPests) { + removePests(PestAPI.scoreboardPests - newPests) + PestAPI.scoreboardPests = newPests + update() + } - removePests(PestAPI.scoreboardPests - newPests) - PestAPI.scoreboardPests = newPests - update() + resetAllPests(newPests) } // Auto fixing plots marked as pests when killing all pests without SkyHanni earlier. |