mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-10-27 14:30:23 +00:00
register string preprocessor first
This commit is contained in:
1 parent
b3f15b77ee
commit
122e72e842
1 file changed
+4
-4
@@ -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