mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-20 07:41:26 +00:00
register value preprocessor last
This commit is contained in:
@@ -241,10 +241,6 @@ public class ConfigPackImpl implements ConfigPack {
|
|||||||
|
|
||||||
main.getEventManager().callEvent(new ConfigurationDiscoveryEvent(this, loader, configurations::put)); // Create all the configs.
|
main.getEventManager().callEvent(new ConfigurationDiscoveryEvent(this, loader, configurations::put)); // Create all the configs.
|
||||||
|
|
||||||
MetaValuePreprocessor valuePreprocessor = new MetaValuePreprocessor(configurations);
|
|
||||||
selfLoader.registerPreprocessor(Meta.class, valuePreprocessor);
|
|
||||||
abstractConfigLoader.registerPreprocessor(Meta.class, valuePreprocessor);
|
|
||||||
|
|
||||||
MetaListLikePreprocessor listPreprocessor = new MetaListLikePreprocessor(configurations);
|
MetaListLikePreprocessor listPreprocessor = new MetaListLikePreprocessor(configurations);
|
||||||
selfLoader.registerPreprocessor(Meta.class, listPreprocessor);
|
selfLoader.registerPreprocessor(Meta.class, listPreprocessor);
|
||||||
abstractConfigLoader.registerPreprocessor(Meta.class, listPreprocessor);
|
abstractConfigLoader.registerPreprocessor(Meta.class, listPreprocessor);
|
||||||
@@ -253,6 +249,10 @@ public class ConfigPackImpl implements ConfigPack {
|
|||||||
selfLoader.registerPreprocessor(Meta.class, stringPreprocessor);
|
selfLoader.registerPreprocessor(Meta.class, stringPreprocessor);
|
||||||
abstractConfigLoader.registerPreprocessor(Meta.class, stringPreprocessor);
|
abstractConfigLoader.registerPreprocessor(Meta.class, stringPreprocessor);
|
||||||
|
|
||||||
|
MetaValuePreprocessor valuePreprocessor = new MetaValuePreprocessor(configurations);
|
||||||
|
selfLoader.registerPreprocessor(Meta.class, valuePreprocessor);
|
||||||
|
abstractConfigLoader.registerPreprocessor(Meta.class, valuePreprocessor);
|
||||||
|
|
||||||
Map<ConfigType<? extends ConfigTemplate, ?>, List<Configuration>> configs = new HashMap<>();
|
Map<ConfigType<? extends ConfigTemplate, ?>, List<Configuration>> configs = new HashMap<>();
|
||||||
|
|
||||||
for(Configuration configuration : configurations.values()) { // Sort the configs
|
for(Configuration configuration : configurations.values()) { // Sort the configs
|
||||||
|
|||||||
Reference in New Issue
Block a user