Skip to content

Commit

Permalink
Load parse options before registering metaconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
astrsh committed Oct 30, 2024
1 parent 5e43f0a commit 2c8d341
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,11 @@ private ConfigPackImpl(Loader loader, Configuration packManifest, Platform platf
selfLoader.load(addonsTemplate, packManifest);
this.addons = addonsTemplate.getAddons();

ConfigPackExpressionOptionsTemplate expressionOptionsTemplate = new ConfigPackExpressionOptionsTemplate();
selfLoader.load(expressionOptionsTemplate, packManifest);
this.parseOptions = expressionOptionsTemplate.getParseOptions();


Map<String, Configuration> configurations = discoverConfigurations();
registerMeta(configurations);

Expand All @@ -179,10 +184,6 @@ private ConfigPackImpl(Loader loader, Configuration packManifest, Platform platf

selfLoader.load(template, packManifest);

ConfigPackExpressionOptionsTemplate expressionOptionsTemplate = new ConfigPackExpressionOptionsTemplate();
selfLoader.load(expressionOptionsTemplate, packManifest);
this.parseOptions = expressionOptionsTemplate.getParseOptions();

String namespace;
String id;
if(template.getID().contains(":")) {
Expand Down

0 comments on commit 2c8d341

Please sign in to comment.