File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
common/src/main/java/org/embeddedt/modernfix/common/mixin/perf/blast_search_trees Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -33,10 +33,9 @@ private void replaceSearchTrees(CallbackInfo ci) {
3333 return ;
3434 ModernFix .LOGGER .info ("Replacing search trees with '{}' provider" , provider .getName ());
3535 mfix$runItemFillingQuirk ();
36- var mainTree = provider .getSearchTree (false );
37- this .searchRegistry .register (SearchRegistry .CREATIVE_NAMES , mainTree );
36+ this .searchRegistry .register (SearchRegistry .CREATIVE_NAMES , provider .getSearchTree (false ));
3837 this .searchRegistry .register (SearchRegistry .CREATIVE_TAGS , provider .getSearchTree (true ));
39- this .searchRegistry .register (SearchRegistry .RECIPE_COLLECTIONS , new RecipeBookSearchTree (mainTree ));
38+ this .searchRegistry .register (SearchRegistry .RECIPE_COLLECTIONS , new RecipeBookSearchTree (provider . getSearchTree ( false ) ));
4039 // grab components for all key mappings in order to prevent them from being loaded off-thread later
4140 // this populates the LazyLoadedValues
4241 // we also need to suppress GLFW errors to prevent crashes if a key is missing
You can’t perform that action at this time.
0 commit comments