Skip to content

Commit

Permalink
Use separate backing search tree for recipe book
Browse files Browse the repository at this point in the history
  • Loading branch information
embeddedt committed Mar 30, 2024
1 parent db10590 commit 469b4b7
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@ private void replaceSearchTrees(CallbackInfo ci) {
ci.cancel();
mfix$runItemFillingQuirk();
if(ModList.get().getModFileById("jei") != null && ModList.get().getModFileById("roughlyenoughitems") == null) {
JEIBackedSearchTree mainTree = new JEIBackedSearchTree(false);
this.searchRegistry.register(SearchRegistry.CREATIVE_NAMES, mainTree);
this.searchRegistry.register(SearchRegistry.CREATIVE_NAMES, new JEIBackedSearchTree(false));
this.searchRegistry.register(SearchRegistry.CREATIVE_TAGS, new JEIBackedSearchTree(true));
this.searchRegistry.register(SearchRegistry.RECIPE_COLLECTIONS, new RecipeBookSearchTree(mainTree));
this.searchRegistry.register(SearchRegistry.RECIPE_COLLECTIONS, new RecipeBookSearchTree(new JEIBackedSearchTree(false)));
} else {
this.searchRegistry.register(SearchRegistry.CREATIVE_NAMES, new DummySearchTree<>());
this.searchRegistry.register(SearchRegistry.CREATIVE_TAGS, new DummySearchTree<>());
Expand Down

0 comments on commit 469b4b7

Please sign in to comment.