From 41b8754130f0dd04a7e2d4291727f3b743b4ffc0 Mon Sep 17 00:00:00 2001 From: yueh Date: Mon, 17 Oct 2016 12:31:55 +0200 Subject: [PATCH] Fixes #2484: Return a copied itemstack to prevent forge from consuming it. --- .../appeng/items/tools/quartz/ToolQuartzCuttingKnife.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/appeng/items/tools/quartz/ToolQuartzCuttingKnife.java b/src/main/java/appeng/items/tools/quartz/ToolQuartzCuttingKnife.java index 2a08edae..80c9023f 100644 --- a/src/main/java/appeng/items/tools/quartz/ToolQuartzCuttingKnife.java +++ b/src/main/java/appeng/items/tools/quartz/ToolQuartzCuttingKnife.java @@ -85,8 +85,10 @@ public class ToolQuartzCuttingKnife extends AEBaseItem implements IGuiItem @Override public ItemStack getContainerItem( final ItemStack itemStack ) { - itemStack.setItemDamage( itemStack.getItemDamage() + 1 ); - return itemStack; + ItemStack copy = itemStack.copy(); + copy.setItemDamage( itemStack.getItemDamage() + 1 ); + + return copy; } @Override