Skip to content

Commit

Permalink
Fixed can not remove nearest pest.
Browse files Browse the repository at this point in the history
  • Loading branch information
hannibal002 committed Jan 7, 2024
1 parent cb75897 commit aab187a
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit aab187a

Please sign in to comment.