Validate Recipe before Extraction.
This commit is contained in:
parent
b01360c6a0
commit
7ccb850037
1 changed files with 11 additions and 7 deletions
|
@ -583,10 +583,13 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
|
|||
{
|
||||
fuzz = fuzz.copy();
|
||||
fuzz.setStackSize( input[x].getStackSize() );
|
||||
|
||||
if ( details.isValidItemForSlot( x, fuzz.getItemStack(), getWorld() ) )
|
||||
{
|
||||
IAEItemStack ais = inventory.extractItems( fuzz, Actionable.MODULATE, machineSrc );
|
||||
ItemStack is = ais == null ? null : ais.getItemStack();
|
||||
|
||||
if ( is != null && details.isValidItemForSlot( x, is, getWorld() ) )
|
||||
if ( is != null )
|
||||
{
|
||||
postChange( AEItemStack.create( is ), machineSrc );
|
||||
ic.setInventorySlotContents( x, is );
|
||||
|
@ -595,6 +598,7 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
IAEItemStack ais = inventory.extractItems( input[x].copy(), Actionable.MODULATE, machineSrc );
|
||||
|
|
Loading…
Reference in a new issue