Skip to content

Commit 6e2a479

Browse files
committed
fix: Fix Ingredient ItemStack being modified when displaying in fake slot #774
1 parent 34c0f86 commit 6e2a479

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

common/src/main/java/net/blay09/mods/cookingforblockheads/menu/slot/CraftMatrixFakeSlot.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ public void setIngredient(@Nullable NonNullList<ItemStack> ingredients) {
2626
if (ingredients != null) {
2727
for (ItemStack itemStack : ingredients) {
2828
if (!itemStack.isEmpty()) {
29-
itemStack.setCount(1);
30-
visibleStacks.add(itemStack);
29+
visibleStacks.add(itemStack.copyWithCount(1));
3130
}
3231
}
3332
}

0 commit comments

Comments
 (0)