invalidate cached itemstack if its gonna be used in a real insertion
This commit is contained in:
@@ -305,6 +305,7 @@ public class CraftingTreeProcess
|
||||
containerItems = new ArrayList<>();
|
||||
}
|
||||
this.bytes++;
|
||||
o.setCachedItemStack( is );
|
||||
containerItems.add( o );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -909,10 +909,6 @@ public class DualityInterface implements IGridTickable, IStorageMonitorable, IIn
|
||||
changed = true;
|
||||
throw new GridAccessException();
|
||||
}
|
||||
else
|
||||
{
|
||||
itemStack.setCachedItemStack( inputStack );
|
||||
}
|
||||
|
||||
IAEItemStack storedStack = this.gridProxy.getStorage().getInventory( AEApi.instance().storage().getStorageChannel( IItemStorageChannel.class ) ).getStorageList().findPrecise( itemStack );
|
||||
if( storedStack != null )
|
||||
@@ -930,8 +926,12 @@ public class DualityInterface implements IGridTickable, IStorageMonitorable, IIn
|
||||
}
|
||||
else if( storedStack.isCraftable() )
|
||||
{
|
||||
changed = this.handleCrafting( x, adaptor, itemStack ) || changed;
|
||||
itemStack.setCachedItemStack(inputStack);
|
||||
changed = this.handleCrafting( x, adaptor, itemStack ) || changed;
|
||||
}
|
||||
if (acquired == null) {
|
||||
itemStack.setCachedItemStack(inputStack);
|
||||
}
|
||||
}
|
||||
}
|
||||
// else wtf?
|
||||
|
||||
@@ -285,6 +285,7 @@ public final class AEItemStack extends AEStack<IAEItemStack> implements IAEItemS
|
||||
if( this.cachedItemStack != null )
|
||||
{
|
||||
currentCached = this.cachedItemStack;
|
||||
this.cachedItemStack = null;
|
||||
}
|
||||
|
||||
ItemStack itemStack;
|
||||
|
||||
Reference in New Issue
Block a user