aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/dulkirmod/features
diff options
context:
space:
mode:
authoringlettronald <inglettronald@gmail.com>2023-04-28 20:17:16 -0500
committeringlettronald <inglettronald@gmail.com>2023-04-28 20:17:16 -0500
commita5746c3799c51aee4802ccb0e7ac61978b405b41 (patch)
tree236880a1e5d734c45994161bf7a3b09142cf67e4 /src/main/kotlin/dulkirmod/features
parentc4ef10369b0ca0cc446ebc54bc44c52224024ee1 (diff)
downloadDulkirMod-a5746c3799c51aee4802ccb0e7ac61978b405b41.tar.gz
DulkirMod-a5746c3799c51aee4802ccb0e7ac61978b405b41.tar.bz2
DulkirMod-a5746c3799c51aee4802ccb0e7ac61978b405b41.zip
fixed drag timer
Diffstat (limited to 'src/main/kotlin/dulkirmod/features')
-rw-r--r--src/main/kotlin/dulkirmod/features/DragonFeatures.kt2
1 files changed, 1 insertions, 1 deletions
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"