push down some buttons so the JEI doesnt get cutoff vertically.
ME autocrafting now uses the cached storage list instead of a full simulated network extraction
This commit is contained in:
@@ -88,7 +88,7 @@ public class CraftingJob implements Runnable, ICraftingJob
|
||||
|
||||
this.cc = grid.getCache( ICraftingGrid.class );
|
||||
final GridStorageCache sg = grid.getCache( IStorageGrid.class );
|
||||
this.original = sg.getExtractableList( actionSrc );
|
||||
this.original = new MECraftingInventory( sg.getInventory( AEApi.instance().storage().getStorageChannel( IItemStorageChannel.class ) ).getStorageList() );
|
||||
|
||||
this.setTree( this.getCraftingTree( cc, what ) );
|
||||
this.availableCheck = null;
|
||||
|
||||
@@ -187,6 +187,25 @@ public class MECraftingInventory implements IMEInventory<IAEItemStack>
|
||||
this.par = null;
|
||||
}
|
||||
|
||||
public MECraftingInventory( final IItemList<IAEItemStack> itemList )
|
||||
{
|
||||
this.localCache = new ItemListIgnoreCrafting<>( AEApi.instance().storage().getStorageChannel( IItemStorageChannel.class ).createList() );
|
||||
this.target = null;
|
||||
this.logExtracted = false;
|
||||
this.logInjections = false;
|
||||
this.logMissing = false;
|
||||
this.missingCache = null;
|
||||
this.extractedCache = null;
|
||||
this.injectedCache = null;
|
||||
|
||||
for( IAEItemStack iaeItemStack : itemList )
|
||||
{
|
||||
this.localCache.add( iaeItemStack );
|
||||
}
|
||||
|
||||
this.par = null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IAEItemStack injectItems( final IAEItemStack input, final Actionable mode, final IActionSource src )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user