3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-20 09:50:06 +01:00

Improve search for folia adapter

Dieser Commit ist enthalten in:
Phillip Glanz 2023-04-02 21:30:01 +02:00 committet von Phillipp Glanz
Ursprung ed5abad42c
Commit 3300bb2ac6

Datei anzeigen

@ -46,8 +46,8 @@ public class BukkitImplLoader {
private String customCandidate;
private static String SEARCH_PACKAGE = "com.sk89q.worldedit.bukkit.adapter.impl.fawe";
private static final String SEARCH_PACKAGE_DOT = SEARCH_PACKAGE + ".";
private static final String SEARCH_PATH = SEARCH_PACKAGE.replace(".", "/");
private static String SEARCH_PACKAGE_DOT = SEARCH_PACKAGE + ".";
private static String SEARCH_PATH = SEARCH_PACKAGE.replace(".", "/");
private static final String CLASS_SUFFIX = ".class";
private static final String LOAD_ERROR_MESSAGE =
@ -68,6 +68,8 @@ public class BukkitImplLoader {
public BukkitImplLoader() {
if (FoliaSupport.isFolia()) {
SEARCH_PACKAGE = "com.sk89q.worldedit.folia.adapter.impl.fawe";
SEARCH_PACKAGE_DOT = SEARCH_PACKAGE + ".";
SEARCH_PATH = SEARCH_PACKAGE.replace(".", "/");
}
addDefaults();
}