mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-11-15 15:15:14 +01:00
Fix addon loading issue
This commit is contained in:
parent
0cc0247930
commit
7afcbeefd7
@ -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<Path> files = Files.list(root)) {
|
||||
files
|
||||
.filter(Files::isRegularFile)
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user