From a5746c3799c51aee4802ccb0e7ac61978b405b41 Mon Sep 17 00:00:00 2001 From: inglettronald Date: Fri, 28 Apr 2023 20:17:16 -0500 Subject: fixed drag timer --- src/main/kotlin/dulkirmod/features/DragonFeatures.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/dulkirmod/features/DragonFeatures.kt b/src/main/kotlin/dulkirmod/features/DragonFeatures.kt index 67e488f..9a120fc 100644 --- a/src/main/kotlin/dulkirmod/features/DragonFeatures.kt +++ b/src/main/kotlin/dulkirmod/features/DragonFeatures.kt @@ -76,7 +76,7 @@ object DragonFeatures { val curTime = System.currentTimeMillis() dragons.forEach { - if (it.spawnTime + 5000 < curTime || isAlive(it.color)) return@forEach + if (it.spawnTime + 5000 < curTime || !isAlive(it.color)) return@forEach val timeUntilSpawn = (it.spawnTime + 5000 - curTime) / 1000f val color = when { timeUntilSpawn <= 1 -> "§c" -- cgit