diff options
author | inglettronald <inglettronald@gmail.com> | 2023-04-28 20:17:16 -0500 |
---|---|---|
committer | inglettronald <inglettronald@gmail.com> | 2023-04-28 20:17:16 -0500 |
commit | a5746c3799c51aee4802ccb0e7ac61978b405b41 (patch) | |
tree | 236880a1e5d734c45994161bf7a3b09142cf67e4 /src | |
parent | c4ef10369b0ca0cc446ebc54bc44c52224024ee1 (diff) | |
download | DulkirMod-a5746c3799c51aee4802ccb0e7ac61978b405b41.tar.gz DulkirMod-a5746c3799c51aee4802ccb0e7ac61978b405b41.tar.bz2 DulkirMod-a5746c3799c51aee4802ccb0e7ac61978b405b41.zip |
fixed drag timer
Diffstat (limited to 'src')
-rw-r--r-- | src/main/kotlin/dulkirmod/features/DragonFeatures.kt | 2 |
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" |