mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-02-16 02:20:57 +00:00
Synchronize pack loading
This commit is contained in:
@@ -41,7 +41,7 @@ public class ConfigRegistry extends OpenRegistryImpl<ConfigPack> {
|
||||
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");
|
||||
Files.createDirectories(packsDirectory);
|
||||
List<Exception> failedLoads = new ArrayList<>();
|
||||
|
||||
Reference in New Issue
Block a user