Fixes #2484: Return a copied itemstack to prevent forge from consuming it.
This commit is contained in:
parent
dacce3e7bd
commit
41b8754130
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue