File tree Expand file tree Collapse file tree
src/main/kotlin/com/lambda Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717
1818package com.lambda.module.modules.movement
1919
20- import com.lambda.config.ConfigEditor.forEachSetting
21- import com.lambda.config.ConfigEditor.hideAllExcept
2220import com.lambda.config.blocks.WorldLineSettings
21+ import com.lambda.config.forEachSetting
22+ import com.lambda.config.hideAllExcept
2323import com.lambda.config.withEdits
2424import com.lambda.context.SafeContext
2525import com.lambda.event.events.MovementEvent
Original file line number Diff line number Diff line change @@ -132,7 +132,6 @@ abstract class Task<Result> : Nameable, Muteable {
132132 protected fun success (result : Result ) {
133133 unsubscribe()
134134 state = State .Completed
135- parent?.subTasks?.remove(this )
136135
137136 parent?.onSubTaskSuccess(this )
138137 parent?.onSubTaskCompletion(this )
@@ -141,6 +140,8 @@ abstract class Task<Result> : Nameable, Muteable {
141140 successCallbacks.forEach { it.invoke(this , result) }
142141 completionCallbacks.forEach { it.invoke(this ) }
143142 }
143+
144+ parent?.subTasks?.remove(this )
144145 }
145146
146147 @Ta5kBuilder
@@ -177,6 +178,8 @@ abstract class Task<Result> : Nameable, Muteable {
177178 failureCallbacks.forEach { it.invoke(this , e) }
178179 completionCallbacks.forEach { it.invoke(this ) }
179180 }
181+
182+ parent?.subTasks?.remove(this )
180183 }
181184
182185 @Ta5kBuilder
You can’t perform that action at this time.
0 commit comments