diff --git a/common/src/main/java/org/embeddedt/modernfix/searchtree/RecipeBookSearchTree.java b/common/src/main/java/org/embeddedt/modernfix/searchtree/RecipeBookSearchTree.java index 6048f47e..7fde1cc8 100644 --- a/common/src/main/java/org/embeddedt/modernfix/searchtree/RecipeBookSearchTree.java +++ b/common/src/main/java/org/embeddedt/modernfix/searchtree/RecipeBookSearchTree.java @@ -28,7 +28,7 @@ public class RecipeBookSearchTree extends DummySearchTree { collections = new Object2ObjectOpenHashMap<>(); Map> finalCollection = collections; for(RecipeCollection collection : allCollections) { - collection.getRecipes().stream().map(recipe -> recipe.getResultItem(collection.registryAccess()).getItem()).distinct().forEach(item -> { + collection.getRecipes().stream().map(recipe -> recipe.value().getResultItem(collection.registryAccess()).getItem()).distinct().forEach(item -> { finalCollection.computeIfAbsent(item, k -> new ArrayList<>()).add(collection); }); }