remove registry provider from ConfigType

This commit is contained in:
dfsek
2021-12-16 22:12:42 -07:00
parent 011a915d38
commit 0ad3867a91
2 changed files with 1 additions and 5 deletions

View File

@@ -375,7 +375,7 @@ public class ConfigPackImpl implements ConfigPack {
if(!registryMap
.containsKey(value.getTypeKey()
.getType())) {
OpenRegistry<?> openRegistry = value.registrySupplier(ConfigPackImpl.this).get();
OpenRegistry<?> openRegistry = new OpenRegistryImpl<>();
selfLoader.registerLoader(value.getTypeKey().getType(), openRegistry);
abstractConfigLoader.registerLoader(value.getTypeKey().getType(), openRegistry);
registryMap.put(value.getTypeKey().getType(), new CheckedRegistryImpl<>(openRegistry));