mirror of
https://github.com/AlmostReliable/almostunified.git
synced 2024-11-14 19:25:13 -05:00
fix new custom tags entries not being considered in unification
This commit is contained in:
parent
84fcb8046d
commit
9769c25a1c
2 changed files with 9 additions and 7 deletions
|
@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning].
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
- fixed crash when runtime isn't loaded ([#101](https://github.com/AlmostReliable/almostunified/issues/101))
|
- fixed crash when runtime isn't loaded ([#101](https://github.com/AlmostReliable/almostunified/issues/101))
|
||||||
|
- fixed newly created custom tags not being considered for unification
|
||||||
|
|
||||||
## [1.2.0] - 2024-10-06
|
## [1.2.0] - 2024-10-06
|
||||||
|
|
||||||
|
|
|
@ -76,12 +76,7 @@ public final class AlmostUnifiedRuntimeImpl implements AlmostUnifiedRuntime {
|
||||||
var tagConfig = Config.load(TagConfig.NAME, TagConfig.SERIALIZER);
|
var tagConfig = Config.load(TagConfig.NAME, TagConfig.SERIALIZER);
|
||||||
var unificationConfigs = UnificationConfig.safeLoadConfigs();
|
var unificationConfigs = UnificationConfig.safeLoadConfigs();
|
||||||
|
|
||||||
var unificationTags = bakeAndValidateTags(
|
TagReloadHandler.applyCustomTags(tagConfig.getCustomTags(), itemTags);
|
||||||
unificationConfigs,
|
|
||||||
itemTags,
|
|
||||||
placeholderConfig,
|
|
||||||
debugConfig.shouldLogInvalidTags()
|
|
||||||
);
|
|
||||||
|
|
||||||
CustomIngredientUnifierRegistry ingredientUnifierRegistry = new CustomIngredientUnifierRegistryImpl();
|
CustomIngredientUnifierRegistry ingredientUnifierRegistry = new CustomIngredientUnifierRegistryImpl();
|
||||||
PluginManager.instance().registerCustomIngredientUnifiers(ingredientUnifierRegistry);
|
PluginManager.instance().registerCustomIngredientUnifiers(ingredientUnifierRegistry);
|
||||||
|
@ -89,7 +84,13 @@ public final class AlmostUnifiedRuntimeImpl implements AlmostUnifiedRuntime {
|
||||||
PluginManager.instance().registerRecipeUnifiers(recipeUnifierRegistry);
|
PluginManager.instance().registerRecipeUnifiers(recipeUnifierRegistry);
|
||||||
// TODO: add plugin support for registering config defaults
|
// TODO: add plugin support for registering config defaults
|
||||||
|
|
||||||
TagReloadHandler.applyCustomTags(tagConfig.getCustomTags(), itemTags);
|
var unificationTags = bakeAndValidateTags(
|
||||||
|
unificationConfigs,
|
||||||
|
itemTags,
|
||||||
|
placeholderConfig,
|
||||||
|
debugConfig.shouldLogInvalidTags()
|
||||||
|
);
|
||||||
|
|
||||||
TagSubstitutionsImpl tagSubstitutions = TagSubstitutionsImpl.create(
|
TagSubstitutionsImpl tagSubstitutions = TagSubstitutionsImpl.create(
|
||||||
itemTags::has,
|
itemTags::has,
|
||||||
unificationTags::contains,
|
unificationTags::contains,
|
||||||
|
|
Loading…
Reference in a new issue