mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-10-25 21:40:08 +00:00
register StringPreprocessor
This commit is contained in:
1 parent
d054be5f25
commit
73fd1c9edd
1 file changed
+5
@@ -42,6 +42,7 @@ import com.dfsek.terra.config.fileloaders.ZIPLoader;
|
|||||||
import com.dfsek.terra.config.loaders.GenericTemplateSupplierLoader;
|
import com.dfsek.terra.config.loaders.GenericTemplateSupplierLoader;
|
||||||
import com.dfsek.terra.config.loaders.config.BufferedImageLoader;
|
import com.dfsek.terra.config.loaders.config.BufferedImageLoader;
|
||||||
import com.dfsek.terra.config.preprocessor.MetaListLikePreprocessor;
|
import com.dfsek.terra.config.preprocessor.MetaListLikePreprocessor;
|
||||||
|
import com.dfsek.terra.config.preprocessor.MetaStringPreprocessor;
|
||||||
import com.dfsek.terra.config.preprocessor.MetaValuePreprocessor;
|
import com.dfsek.terra.config.preprocessor.MetaValuePreprocessor;
|
||||||
import com.dfsek.terra.config.prototype.ProtoConfig;
|
import com.dfsek.terra.config.prototype.ProtoConfig;
|
||||||
import com.dfsek.terra.registry.CheckedRegistryImpl;
|
import com.dfsek.terra.registry.CheckedRegistryImpl;
|
||||||
@@ -249,6 +250,10 @@ public class ConfigPackImpl implements ConfigPack {
|
|||||||
selfLoader.registerPreprocessor(Meta.class, listPreprocessor);
|
selfLoader.registerPreprocessor(Meta.class, listPreprocessor);
|
||||||
abstractConfigLoader.registerPreprocessor(Meta.class, listPreprocessor);
|
abstractConfigLoader.registerPreprocessor(Meta.class, listPreprocessor);
|
||||||
|
|
||||||
|
MetaStringPreprocessor stringPreprocessor = new MetaStringPreprocessor(configurations);
|
||||||
|
selfLoader.registerPreprocessor(Meta.class, stringPreprocessor);
|
||||||
|
abstractConfigLoader.registerPreprocessor(Meta.class, stringPreprocessor);
|
||||||
|
|
||||||
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