mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-08-29 21:30:43 +00:00
registerChecked config packs
This commit is contained in:
+2
-2
@@ -45,7 +45,7 @@ public class ConfigRegistry extends OpenRegistryImpl<ConfigPack> {
|
|||||||
|
|
||||||
public void load(File folder, Platform platform) throws ConfigException {
|
public void load(File folder, Platform platform) throws ConfigException {
|
||||||
ConfigPack pack = new ConfigPackImpl(folder, platform);
|
ConfigPack pack = new ConfigPackImpl(folder, platform);
|
||||||
register(pack.getRegistryKey(), pack);
|
registerChecked(pack.getRegistryKey(), pack);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean loadAll(Platform platform) {
|
public boolean loadAll(Platform platform) {
|
||||||
@@ -75,6 +75,6 @@ public class ConfigRegistry extends OpenRegistryImpl<ConfigPack> {
|
|||||||
|
|
||||||
public void load(ZipFile file, Platform platform) throws ConfigException {
|
public void load(ZipFile file, Platform platform) throws ConfigException {
|
||||||
ConfigPackImpl pack = new ConfigPackImpl(file, platform);
|
ConfigPackImpl pack = new ConfigPackImpl(file, platform);
|
||||||
register(pack.getRegistryKey(), pack);
|
registerChecked(pack.getRegistryKey(), pack);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user