tweak crafting job size again

null check
This commit is contained in:
PrototypeTrousers
2022-01-21 18:05:39 -03:00
parent a14d160a07
commit 40bd96d21c
3 changed files with 7 additions and 2 deletions
@@ -48,6 +48,11 @@ public class ContainerPartOreDictStorageBus extends AEBaseContainer
{
final IMEInventory<IAEItemStack> cellInv = this.part.getInternalHandler();
if( cellInv == null )
{
return;
}
Set<Integer> oreIDs = new HashSet<>();
for( IAEItemStack itemStack : cellInv.getAvailableItems( AEApi.instance().storage().getStorageChannel( IItemStorageChannel.class ).createList() ) )
@@ -252,7 +252,7 @@ public class CraftingTreeProcess
pro.dive( job );
}
job.addBytes( this.crafts + 8 + this.bytes );
job.addBytes( this.crafts * 8 + this.bytes );
}
IAEItemStack getAmountCrafted( IAEItemStack what2 )