Skip to content

Commit a5746c3

Browse files
committed
fixed drag timer
1 parent c4ef103 commit a5746c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/dulkirmod/features/DragonFeatures.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ object DragonFeatures {
7676

7777
val curTime = System.currentTimeMillis()
7878
dragons.forEach {
79-
if (it.spawnTime + 5000 < curTime || isAlive(it.color)) return@forEach
79+
if (it.spawnTime + 5000 < curTime || !isAlive(it.color)) return@forEach
8080
val timeUntilSpawn = (it.spawnTime + 5000 - curTime) / 1000f
8181
val color = when {
8282
timeUntilSpawn <= 1 -> "§c"

0 commit comments

Comments
 (0)