9
0
mirror of https://github.com/Xiao-MoMi/Custom-Fishing.git synced 2026-01-03 14:22:10 +00:00

checkpoint - 28

This commit is contained in:
XiaoMoMi
2024-07-07 03:53:04 +08:00
parent 05ac427750
commit 8a0b969f23
24 changed files with 287 additions and 100 deletions

View File

@@ -48,7 +48,7 @@ public abstract class AbstractJavaScheduler<T> implements SchedulerAdapter<T> {
public AbstractJavaScheduler(CustomFishingPlugin plugin) {
this.plugin = plugin;
this.scheduler = new ScheduledThreadPoolExecutor(1, r -> {
this.scheduler = new ScheduledThreadPoolExecutor(4, r -> {
Thread thread = Executors.defaultThreadFactory().newThread(r);
thread.setName("customfishing-scheduler");
return thread;