Quick Fix

This commit is contained in:
Kam committed 2025-04-27 23:23:21 -04:00
1 parent a6665b1de8
commit be46caf9af
2 files changed
+7 -2

No files matched your search

@@ -145,7 +145,12 @@ public class ScriptedActionManager implements IActionManager {
@Override
public IActionChain after(int delay, Consumer<IAction> task) {
offset += delay;
IAction a = mgr.create("chain#" + (index++), 1, offset, task);
Consumer<IAction> wrapper = act -> {
task.accept(act);
act.markDone();
};
IAction a = mgr.create("chain#" + (index++), Integer.MAX_VALUE, offset, wrapper);
a.setUpdateEveryXTick(1);
mgr.scheduleAction(a);
return this;
}