Use ForkJoinPool instead of bukkit scheduler

As the ForkJoinPool will better manage threads so they don't get
exhausted.
This commit is contained in:
Jesse Boyd 2017-09-18 20:42:21 +10:00
parent 11f4c77883
commit 18d0ece516
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -360,7 +360,7 @@ public abstract class FaweChangeSet implements ChangeSet {
if (mainThread) {
run.run();
} else {
TaskManager.IMP.async(run);
TaskManager.IMP.getPublicForkJoinPool().submit(run);
}
}
});