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:
@@ -113,9 +113,9 @@ public class TileGrinder extends AEBaseInvTile implements ICrankable
|
|||||||
{
|
{
|
||||||
if( item.getCount() >= r.getInput().getCount() )
|
if( item.getCount() >= r.getInput().getCount() )
|
||||||
{
|
{
|
||||||
item.grow( -r.getInput().getCount() );
|
|
||||||
final ItemStack ais = item.copy();
|
final ItemStack ais = item.copy();
|
||||||
ais.setCount( r.getInput().getCount() );
|
ais.setCount( r.getInput().getCount() );
|
||||||
|
item.shrink( r.getInput().getCount() );
|
||||||
|
|
||||||
if( item.getCount() <= 0 )
|
if( item.getCount() <= 0 )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user