aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/pests/PestAPI.kt8
1 files changed, 4 insertions, 4 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 bd0ee5407..98e712167 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
@@ -132,13 +132,12 @@ object PestAPI {
plot.pests = scoreboardPests - accurateAmount
plot.isPestCountInaccurate = false
} else if (accurateAmount + inaccurateAmount > scoreboardPests) { // when logic fails and we reach impossible pest counts
- sendPestError(true)
getInfestedPlots().forEach {
it.pests = 0
it.isPestCountInaccurate = true
}
if (loop > 0) fixPests(loop - 1)
- else sendPestError(false)
+ else sendPestError()
}
}
@@ -282,13 +281,14 @@ object PestAPI {
updatePests()
}
- private fun sendPestError(betaOnly: Boolean) {
+ private fun sendPestError() {
ErrorManager.logErrorStateWithData(
"Error getting pest count",
"Impossible pest count",
"scoreboardPests" to scoreboardPests,
"plots" to getInfestedPlots().map { "id: ${it.id} pests: ${it.pests} isInaccurate: ${it.isPestCountInaccurate}" },
- noStackTrace = true, betaOnly = betaOnly
+ noStackTrace = true,
+ betaOnly = true
)
}