mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-21 06:52:21 +00:00
ActionThread
This commit is contained in:
1 parent
bdbf30d328
commit
78bb39e4c7
2 files changed
+9
-7
No files matched your search
@@ -73,7 +73,7 @@ public class Action implements IAction {
|
||||
}
|
||||
if (ticksExisted % updateEveryXTick == 0 && task != null) {
|
||||
if (isThreaded)
|
||||
actionThread.execute(this::executeTask);
|
||||
actionThread.execute("task", this::executeTask);
|
||||
else
|
||||
executeTask();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user