mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 02:37:27 +00:00
Quick Fix
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user