Skip to content

Commit 2e595f4

Browse files
committed
Fix exception when ItemStackFromIngredient has empty tag
Closes CyclopsMC/IntegratedDynamics#1650
1 parent ef8ea45 commit 2e595f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

loader-neoforge/src/main/java/org/cyclops/cyclopscore/recipe/ItemStackFromIngredient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public ItemStack getFirstItemStack() {
7575
BuiltInRegistries.ITEM.getKey(e.getItem()).getNamespace(),
7676
Integer.MAX_VALUE
7777
)))
78-
.orElseThrow(() -> new IllegalStateException("No tag value found for " + tag))
78+
.orElse(ItemStack.EMPTY)
7979
.copy();
8080

8181
firstItemStack = outputStack.copy();

0 commit comments

Comments
 (0)