Minor changes

This commit is contained in:
bigguy345 committed 2025-07-04 00:10:12 +03:00
1 parent 50aedd8f56
commit 44d76b638d
2 files changed
+7 -6

No files matched your search

@@ -509,10 +509,6 @@ public class Action implements IAction {
return before(manager.create(t));
}
@Override
public IConditionalAction conditional(IConditionalAction after) {
return manager.schedule(after);
}
///////////////////////////////////////////////////
///////////////////////////////////////////////////
@@ -566,6 +562,11 @@ public class Action implements IAction {
///////////////////////////////////////////////////
// Conditionals
@Override
public IConditionalAction conditional(IConditionalAction after) {
return manager.schedule(after);
}
@Override
public void conditional(IConditionalAction... actions) {
for (IConditionalAction act : actions)
@@ -267,8 +267,6 @@ public class ActionQueue implements IActionQueue {
if (!isWorking)
return;
killWhenEmpty();
if (!isParallel) {
IAction current = getCurrentAction();
if (current instanceof Action) {
@@ -290,6 +288,8 @@ public class ActionQueue implements IActionQueue {
}
}
}
killWhenEmpty();
}
protected void killWhenEmpty() {