mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 06:09:05 +00:00
Scheduled conditionals properly using after(), before() and sequential schedule()
This commit is contained in:
1 parent
e69bbd13b0
commit
8b4892cb35
2 files changed
+9
No files matched your search
@@ -101,6 +101,9 @@ public class ActionManager implements IActionManager {
|
||||
|
||||
@Override
|
||||
public IAction schedule(IAction action) {
|
||||
if (action instanceof IConditionalAction)
|
||||
return schedule((IConditionalAction) action);
|
||||
|
||||
Action act = (Action) action;
|
||||
if (act.unscheduledBefore != null)
|
||||
act.scheduleAllBefore(actionQueue);
|
||||
|
||||
Reference in new issue
Block a user