Prevent encoding Patterns with zero quantity items.

This commit is contained in:
AlgorithmX2 2014-08-20 23:08:59 -05:00
parent e7a391fa43
commit e1237468b8

View file

@ -253,7 +253,7 @@ public class ContainerPatternTerm extends ContainerMEMonitorable implements IAEA
if ( craftingMode )
{
ItemStack out = getAndUpdateOutput();
if ( out != null )
if ( out != null && out.stackSize > 0 )
return new ItemStack[] { out };
}
else
@ -264,7 +264,7 @@ public class ContainerPatternTerm extends ContainerMEMonitorable implements IAEA
for (int x = 0; x < outputSlots.length; x++)
{
ItemStack out = outputSlots[x].getStack();
if ( out != null )
if ( out != null && out.stackSize > 0 )
{
list.add( out );
hasValue = true;