switch to extractable instead of cached item list
This commit is contained in:
@@ -139,14 +139,7 @@ public class MECraftingInventory implements IMEInventory<IAEItemStack>
|
|||||||
this.localCache = new ItemListIgnoreCrafting<>( AEApi.instance().storage().getStorageChannel( IItemStorageChannel.class ).createList() );
|
this.localCache = new ItemListIgnoreCrafting<>( AEApi.instance().storage().getStorageChannel( IItemStorageChannel.class ).createList() );
|
||||||
for( final IAEItemStack is : target.getStorageList() )
|
for( final IAEItemStack is : target.getStorageList() )
|
||||||
{
|
{
|
||||||
if( src.player().isPresent() )
|
this.localCache.add( target.extractItems( is, Actionable.SIMULATE, src ) );
|
||||||
{
|
|
||||||
this.localCache.add( target.extractItems( is, Actionable.SIMULATE, src ) );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
this.localCache.add( is );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.par = null;
|
this.par = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user