Fixed blank patterns in the pattern terminal not decreasing when encoding a pattern.

This commit is contained in:
Gunther De Wachter
2017-06-28 06:21:11 +02:00
parent bce500616c
commit 0be2011645
2 changed files with 6 additions and 6 deletions
@@ -115,7 +115,7 @@ public class PatternHelper implements ICraftingPatternDetails, Comparable<Patter
else
{
this.standardRecipe = null;
this.correctOutput = null;
this.correctOutput = ItemStack.EMPTY;
for( int x = 0; x < outTag.tagCount(); x++ )
{
@@ -332,10 +332,10 @@ public class PatternHelper implements ICraftingPatternDetails, Comparable<Patter
{
if( this.crafting.getStackInSlot( slotIndex ).isEmpty() )
{
return i == null ? TestStatus.ACCEPT : TestStatus.DECLINE;
return i.isEmpty() ? TestStatus.ACCEPT : TestStatus.DECLINE;
}
if( i == null )
if( i.isEmpty() )
{
return TestStatus.DECLINE;
}