File tree 2 files changed +5
-5
lines changed
platform-folia/src/main/java/dev/hypera/chameleon/platform/folia
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ This allows the Git history to be more readable and also allows us to generate c
91
91
- ` events ` , when modifying a file that is related to events.
92
92
- ` examples ` , when modifying an example.
93
93
- ` extensions ` , when modifying a file that is related to extensions.
94
+ - ` folia ` , when modifying a file inside the ` platform-folia ` module.
94
95
- ` minestom ` , when modifying a file inside the ` platform-minestom ` module.
95
96
- ` nukkit ` , when modifying a file inside the ` platform-nukkit ` module.
96
97
- ` scheduling ` , when modifying a file that is related to scheduling.
Original file line number Diff line number Diff line change @@ -123,16 +123,15 @@ public final class FoliaChameleon extends BukkitChameleon {
123
123
}
124
124
125
125
/**
126
- * Check if Folia is present .
126
+ * Returns whether this server is a Folia server .
127
127
*
128
- * @return true if Folia is present .
128
+ * @return {@code true} if this server is a Folia server .
129
129
*/
130
130
private static boolean isFolia () {
131
131
try {
132
- // find a better class to use for this?
133
- Class .forName ("io.papermc.paper.threadedregions.scheduler.AsyncScheduler" );
132
+ Class .forName ("io.papermc.paper.threadedregions.RegionizedServer" );
134
133
return true ;
135
- } catch (ClassNotFoundException e ) {
134
+ } catch (ClassNotFoundException ex ) {
136
135
return false ;
137
136
}
138
137
}
You can’t perform that action at this time.
0 commit comments