Prevent encoding Patterns with zero quantity items.
This commit is contained in:
parent
e7a391fa43
commit
e1237468b8
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue