Change interface behavior

skip complete configured stacks
postpone crafting job start
This commit is contained in:
Salomão
2020-10-20 14:30:08 -03:00
parent d730503378
commit 535289e694
2 changed files with 9 additions and 5 deletions
@@ -430,14 +430,18 @@ public class DualityInterface implements IGridTickable, IStorageMonitorable, IIn
this.requireWork[slot] = req.copy();
return;
}
else if( req.isSameType( stored ) ) // same type ( qty different? )!
else if( req.isSameType( stored ) ) // same type and quantity )!
{
if( req.getStackSize() != stored.getCount() )
if( req.getStackSize() == stored.getCount())
{
this.requireWork[slot] = null;
}
else // same type ( qty different? )!
{
this.requireWork[slot] = req.copy();
this.requireWork[slot].setStackSize( req.getStackSize() - stored.getCount() );
return;
}
return;
}
else
// Stored != null; dispose!