Skip to content

Commit

Permalink
Update recipe book search tree for 1.20.2 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
embeddedt committed Mar 30, 2024
1 parent ad07fb3 commit 50556ab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ private Map<Item, List<RecipeCollection>> populateCollectionMap() {
collections = new Object2ObjectOpenHashMap<>();
Map<Item, List<RecipeCollection>> 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);
});
}
Expand Down

0 comments on commit 50556ab

Please sign in to comment.