mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-14 00:14:09 +00:00
Minor changes
This commit is contained in:
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() {
|
||||
|
||||
Reference in new issue
Block a user