aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/repo/HypixelStaticData.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-11-17 19:41:18 +0100
committerLinnea Gräf <nea@nea.moe>2024-11-17 19:41:18 +0100
commit86cbf9d4221e85dec14300c11393abb325bffcef (patch)
treedc86b43ae33e92a7f7ad553e6a03b6853d6b0ded /src/main/kotlin/repo/HypixelStaticData.kt
parent6045077025629cabc1831a281fec532faa7781dd (diff)
downloadFirmament-86cbf9d4221e85dec14300c11393abb325bffcef.tar.gz
Firmament-86cbf9d4221e85dec14300c11393abb325bffcef.tar.bz2
Firmament-86cbf9d4221e85dec14300c11393abb325bffcef.zip
fix: Item predicates not applying unless a vanilla predicate is present
Diffstat (limited to 'src/main/kotlin/repo/HypixelStaticData.kt')
-rw-r--r--src/main/kotlin/repo/HypixelStaticData.kt2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/kotlin/repo/HypixelStaticData.kt b/src/main/kotlin/repo/HypixelStaticData.kt
index 727a962..181aa70 100644
--- a/src/main/kotlin/repo/HypixelStaticData.kt
+++ b/src/main/kotlin/repo/HypixelStaticData.kt
@@ -6,6 +6,7 @@ import org.apache.logging.log4j.LogManager
import org.lwjgl.glfw.GLFW
import kotlinx.coroutines.async
import kotlinx.coroutines.awaitAll
+import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import kotlinx.coroutines.withTimeoutOrNull
import kotlinx.serialization.SerialName
@@ -74,6 +75,7 @@ object HypixelStaticData {
while (true) {
logger.info("Updating NEU prices")
updatePrices()
+ delay(10.minutes)
}
}
}