implement namespaced registries

This commit is contained in:
dfsek committed 2021-12-25 01:01:32 -07:00
1 parent bb87bfa1de
commit 8467a19781
44 files changed
+427 -235

No files matched your search

@@ -27,7 +27,7 @@ public class StructureAddon implements AddonInitializer {
platform.getEventManager()
.getHandler(FunctionalEventHandler.class)
.register(addon, ConfigPackPreLoadEvent.class)
.then(event -> event.getPack().registerConfigType(new StructureConfigType(), "STRUCTURE", 2))
.then(event -> event.getPack().registerConfigType(new StructureConfigType(), addon.getKey("STRUCTURE"), 2))
.failThrough();
}
}