Skip to content

Commit c3dbc56

Browse files
committed
Dont override cancelled and correct place break cooldown unit
1 parent a854f40 commit c3dbc56

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

common/src/main/kotlin/com/lambda/config/groups/BuildSettings.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ class BuildSettings(
66
c: Configurable,
77
vis: () -> Boolean = { true }
88
) : BuildConfig {
9-
override val breakCoolDown by c.setting("Break Cooldown", 0, 0..20, 1, "Delay between breaking blocks", " ticks", vis)
10-
override val placeCooldown by c.setting("Place Cooldown", 0, 0..20, 1, "Delay between placing blocks", " ticks", vis)
9+
override val breakCoolDown by c.setting("Break Cooldown", 0, 0..1000, 1, "Delay between breaking blocks", " ms", vis)
10+
override val placeCooldown by c.setting("Place Cooldown", 0, 0..1000, 1, "Delay between placing blocks", " ms", vis)
1111
override val collectDrops by c.setting("Collect All Drops", false, "Collect all drops when breaking blocks", vis)
1212
override val breakWeakBlocks by c.setting("Break Weak Blocks", false, "Break blocks that dont have structural integrity (e.g: grass)", vis)
1313
override val pathing by c.setting("Pathing", true, "Path to blocks", vis)

common/src/main/kotlin/com/lambda/task/Task.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ abstract class Task<Result> : Nameable {
176176
runConcurrent {
177177
delay(cooldown.toLong())
178178
runGameScheduled {
179-
finish(result)
179+
if (isRunning) finish(result)
180180
}
181181
}
182182
} else finish(result)

0 commit comments

Comments
 (0)