Skip to content

Commit cfab04e

Browse files
committed
fix: use the ItemStack clone
1 parent 8b64f09 commit cfab04e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/me/voper/slimeframe/implementation/items/machines/ConcreteGenerator.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,9 @@ public List<ItemStack> getDisplayRecipes() {
8585
for (ItemStack itemStack: CONCRETE_LIST) {
8686
if (!itemStack.getType().name().endsWith("_CONCRETE")) continue;
8787
displayRecipes.add(recipes.get(0).getInput()[0]);
88-
itemStack.setAmount(outputAmount * production);
89-
displayRecipes.add(itemStack);
88+
ItemStack clone = itemStack.clone();
89+
clone.setAmount(outputAmount * production);
90+
displayRecipes.add(clone);
9091
displayRecipes.add(recipes.get(0).getInput()[1]);
9192
displayRecipes.add(null);
9293
}

0 commit comments

Comments
 (0)