getKey -> key

This commit is contained in:
dfsek
2021-12-25 01:04:19 -07:00
parent 8467a19781
commit 2b92e2e73b
22 changed files with 78 additions and 83 deletions

View File

@@ -209,7 +209,7 @@ public abstract class AbstractPlatform implements Platform {
platformInjector.inject(addon);
addon.initialize();
if(!(addon instanceof EphemeralAddon)) { // ephemeral addons exist only for version checking
addonRegistry.register(addon.getKey(addon.getID()), addon);
addonRegistry.register(addon.key(addon.getID()), addon);
}
});

View File

@@ -220,7 +220,7 @@ public class ConfigPackImpl implements ConfigPack {
return Pair.of(configuration.getID(), loaded);
})
.toList()
.forEach(pair -> registry.register(getKey(pair.getLeft()), pair.getRight()));
.forEach(pair -> registry.register(key(pair.getLeft()), pair.getRight()));
platform.getEventManager().callEvent(new ConfigTypePostLoadEvent(configType, registry, this));
});