diff --git a/BlueMapCommon/src/main/java/de/bluecolored/bluemap/common/addons/Addons.java b/BlueMapCommon/src/main/java/de/bluecolored/bluemap/common/addons/Addons.java index 6d537544..298e087c 100644 --- a/BlueMapCommon/src/main/java/de/bluecolored/bluemap/common/addons/Addons.java +++ b/BlueMapCommon/src/main/java/de/bluecolored/bluemap/common/addons/Addons.java @@ -59,6 +59,7 @@ public static void tryLoadAddons(Path root) { } public static void tryLoadAddons(Path root, boolean expectOnlyAddons) { + if (!Files.exists(root)) return; try (Stream files = Files.list(root)) { files .filter(Files::isRegularFile) diff --git a/BlueMapCommon/src/main/java/de/bluecolored/bluemap/common/plugin/Plugin.java b/BlueMapCommon/src/main/java/de/bluecolored/bluemap/common/plugin/Plugin.java index 4a7fba04..3ba6bcfa 100644 --- a/BlueMapCommon/src/main/java/de/bluecolored/bluemap/common/plugin/Plugin.java +++ b/BlueMapCommon/src/main/java/de/bluecolored/bluemap/common/plugin/Plugin.java @@ -126,7 +126,7 @@ private void load(@Nullable ResourcePack preloadedResourcePack) throws IOExcepti Path addonsFolder = serverInterface.getConfigFolder().resolve("addons"); Files.createDirectories(addonsFolder); Addons.tryLoadAddons(addonsFolder, true); - serverInterface.getModsFolder().ifPresent(Addons::tryLoadAddons); + //serverInterface.getModsFolder().ifPresent(Addons::tryLoadAddons); //load configs BlueMapConfigManager configManager = BlueMapConfigManager.builder()