Skip to content

Commit

Permalink
Change Folia check to be compatible with ShreddedPaper (#551)
Browse files Browse the repository at this point in the history
ShreddedPaper is fully compatible with all folia plugins if don't check if its folia, BUT we have an empty class for RegionizedServer as MOST plugins will check for this, please be like everyone else!
  • Loading branch information
ProdPreva1l authored Jun 8, 2024
1 parent ca59ff2 commit d2edace
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/coreprotect/utility/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -1312,7 +1312,7 @@ public static boolean isPaper() {

public static boolean isFolia() {
try {
Class.forName("io.papermc.paper.threadedregions.ThreadedRegionizer");
Class.forName("io.papermc.paper.threadedregions.RegionizedServer");
}
catch (Exception e) {
return false;
Expand Down

0 comments on commit d2edace

Please sign in to comment.