From 3300bb2ac6fa8c9e7643cd686484db2d4a76f131 Mon Sep 17 00:00:00 2001
From: Phillip Glanz
Date: Sun, 2 Apr 2023 21:30:01 +0200
Subject: [PATCH] Improve search for folia adapter
---
.../sk89q/worldedit/bukkit/adapter/BukkitImplLoader.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/adapter/BukkitImplLoader.java b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/adapter/BukkitImplLoader.java
index 793cdf233..ea7f432bd 100644
--- a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/adapter/BukkitImplLoader.java
+++ b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/adapter/BukkitImplLoader.java
@@ -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();
}