mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-19 23:31:01 +00:00
Synchronize pack loading
This commit is contained in:
+1
-1
@@ -41,7 +41,7 @@ public class ConfigRegistry extends OpenRegistryImpl<ConfigPack> {
|
|||||||
super(TypeKey.of(ConfigPack.class));
|
super(TypeKey.of(ConfigPack.class));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void loadAll(Platform platform) throws IOException, PackLoadFailuresException {
|
public synchronized void loadAll(Platform platform) throws IOException, PackLoadFailuresException {
|
||||||
Path packsDirectory = platform.getDataFolder().toPath().resolve("packs");
|
Path packsDirectory = platform.getDataFolder().toPath().resolve("packs");
|
||||||
Files.createDirectories(packsDirectory);
|
Files.createDirectories(packsDirectory);
|
||||||
List<Exception> failedLoads = new ArrayList<>();
|
List<Exception> failedLoads = new ArrayList<>();
|
||||||
|
|||||||
Reference in New Issue
Block a user