mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-18 23:01:03 +00:00
register string preprocessor first
This commit is contained in:
@@ -241,14 +241,14 @@ 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.
|
||||||
|
|
||||||
MetaListLikePreprocessor listPreprocessor = new MetaListLikePreprocessor(configurations);
|
|
||||||
selfLoader.registerPreprocessor(Meta.class, listPreprocessor);
|
|
||||||
abstractConfigLoader.registerPreprocessor(Meta.class, listPreprocessor);
|
|
||||||
|
|
||||||
MetaStringPreprocessor stringPreprocessor = new MetaStringPreprocessor(configurations);
|
MetaStringPreprocessor stringPreprocessor = new MetaStringPreprocessor(configurations);
|
||||||
selfLoader.registerPreprocessor(Meta.class, stringPreprocessor);
|
selfLoader.registerPreprocessor(Meta.class, stringPreprocessor);
|
||||||
abstractConfigLoader.registerPreprocessor(Meta.class, stringPreprocessor);
|
abstractConfigLoader.registerPreprocessor(Meta.class, stringPreprocessor);
|
||||||
|
|
||||||
|
MetaListLikePreprocessor listPreprocessor = new MetaListLikePreprocessor(configurations);
|
||||||
|
selfLoader.registerPreprocessor(Meta.class, listPreprocessor);
|
||||||
|
abstractConfigLoader.registerPreprocessor(Meta.class, listPreprocessor);
|
||||||
|
|
||||||
MetaValuePreprocessor valuePreprocessor = new MetaValuePreprocessor(configurations);
|
MetaValuePreprocessor valuePreprocessor = new MetaValuePreprocessor(configurations);
|
||||||
selfLoader.registerPreprocessor(Meta.class, valuePreprocessor);
|
selfLoader.registerPreprocessor(Meta.class, valuePreprocessor);
|
||||||
abstractConfigLoader.registerPreprocessor(Meta.class, valuePreprocessor);
|
abstractConfigLoader.registerPreprocessor(Meta.class, valuePreprocessor);
|
||||||
|
|||||||
Reference in New Issue
Block a user