Skip to content

Commit caf8733

Browse files
committed
Fix folia detection.
1 parent 5a48403 commit caf8733

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

eternalcore-core/src/main/java/com/eternalcode/core/scheduler/SchedulerSetup.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,11 @@ class SchedulerSetup {
1313
@Bean
1414
MinecraftScheduler scheduler(Plugin plugin) {
1515
try {
16-
Class.forName("io.papermc.paper.threadedregions.scheduler.GlobalRegionScheduler");
17-
Class.forName("io.papermc.paper.threadedregions.scheduler.RegionScheduler");
18-
Class.forName("io.papermc.paper.threadedregions.scheduler.AsyncScheduler");
16+
Class.forName("io.papermc.paper.threadedregions.RegionizedServer");
1917
return new FoliaSchedulerImpl(plugin);
20-
} catch (ClassNotFoundException notFoundException) {
18+
}
19+
catch (ClassNotFoundException notFoundException) {
2120
return new BukkitSchedulerImpl(plugin);
2221
}
2322
}
24-
2523
}

0 commit comments

Comments
 (0)