Skip to content

Commit

Permalink
fix: recipe transfer not working
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulvdberge committed Jun 20, 2024
1 parent b2045aa commit 0b17281
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Fixed

- Recipe transfer not working.

## [0.1.2] - 2024-06-20

### Fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.awt.Color;
import java.util.List;
import java.util.stream.Collectors;

import com.mojang.blaze3d.vertex.PoseStack;
import com.refinedmods.refinedstorage2.api.resource.list.ResourceList;
Expand Down Expand Up @@ -83,7 +84,7 @@ private boolean isAvailable(final ResourceList available, final EntryIngredient
private List<List<ItemResource>> getInputs(final List<EntryIngredient> ingredients) {
return ingredients.stream()
.map(this::convertIngredientToItemStacks)
.map(list -> list.stream().map(ItemResource::ofItemStack).toList())
.map(list -> list.stream().map(ItemResource::ofItemStack).collect(Collectors.toList()))
.toList();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.awt.Color;
import java.util.List;
import java.util.stream.Collectors;

import com.mojang.blaze3d.vertex.PoseStack;
import com.refinedmods.refinedstorage2.api.resource.list.ResourceList;
Expand Down Expand Up @@ -83,7 +84,7 @@ private boolean isAvailable(final ResourceList available, final EntryIngredient
private List<List<ItemResource>> getInputs(final List<EntryIngredient> ingredients) {
return ingredients.stream()
.map(this::convertIngredientToItemStacks)
.map(list -> list.stream().map(ItemResource::ofItemStack).toList())
.map(list -> list.stream().map(ItemResource::ofItemStack).collect(Collectors.toList()))
.toList();
}

Expand Down

0 comments on commit 0b17281

Please sign in to comment.