aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
authorEmpa <42304516+ItsEmpa@users.noreply.github.com>2024-04-29 14:23:18 +0200
committerGitHub <noreply@github.com>2024-04-29 14:23:18 +0200
commitbdef8e3d684921684afe950f71927a1dcb882d3a (patch)
treeb1f59371086b984a20233a9d2697d64f09af3fe7 /src/main/java/at
parent5902fe91dfa50d2f1fe793bea7064aa5af877c13 (diff)
downloadskyhanni-bdef8e3d684921684afe950f71927a1dcb882d3a.tar.gz
skyhanni-bdef8e3d684921684afe950f71927a1dcb882d3a.tar.bz2
skyhanni-bdef8e3d684921684afe950f71927a1dcb882d3a.zip
Fix: Delay between fixPests calls (#1591)
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/pests/PestAPI.kt7
1 files changed, 6 insertions, 1 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 98e712167..1351ab5bd 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
@@ -20,6 +20,7 @@ import at.hannibal2.skyhanni.features.garden.GardenPlotAPI.pests
import at.hannibal2.skyhanni.features.garden.GardenPlotAPI.uncleared
import at.hannibal2.skyhanni.test.command.ErrorManager
import at.hannibal2.skyhanni.utils.ChatUtils
+import at.hannibal2.skyhanni.utils.DelayedRun
import at.hannibal2.skyhanni.utils.InventoryUtils
import at.hannibal2.skyhanni.utils.ItemUtils.getLore
import at.hannibal2.skyhanni.utils.LocationUtils.distanceSqToPlayer
@@ -136,7 +137,11 @@ object PestAPI {
it.pests = 0
it.isPestCountInaccurate = true
}
- if (loop > 0) fixPests(loop - 1)
+ if (loop > 0) {
+ DelayedRun.runDelayed(2.seconds) {
+ fixPests(loop - 1)
+ }
+ }
else sendPestError()
}
}