Fixes #2484: Return a copied itemstack to prevent forge from consuming it.

This commit is contained in:
yueh 2016-10-17 12:31:55 +02:00
parent dacce3e7bd
commit 41b8754130

View file

@ -85,8 +85,10 @@ public class ToolQuartzCuttingKnife extends AEBaseItem implements IGuiItem
@Override @Override
public ItemStack getContainerItem( final ItemStack itemStack ) public ItemStack getContainerItem( final ItemStack itemStack )
{ {
itemStack.setItemDamage( itemStack.getItemDamage() + 1 ); ItemStack copy = itemStack.copy();
return itemStack; copy.setItemDamage( itemStack.getItemDamage() + 1 );
return copy;
} }
@Override @Override