Fixes a ItemStack deletion issue in the grindstone (#2962)

Fixes the Grinder eating the item in case of an input ItemStack with size equal to one.
This commit is contained in:
tyra 2017-07-21 23:03:13 +02:00 committed by yueh
parent fd7e393d23
commit f0baea3be8

View file

@ -113,9 +113,9 @@ public class TileGrinder extends AEBaseInvTile implements ICrankable
{
if( item.getCount() >= r.getInput().getCount() )
{
item.grow( -r.getInput().getCount() );
final ItemStack ais = item.copy();
ais.setCount( r.getInput().getCount() );
item.shrink( r.getInput().getCount() );
if( item.getCount() <= 0 )
{