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
+1 -1
View File
@@ -4,7 +4,7 @@ aebuild=7
aegroup=appeng aegroup=appeng
aebasename=appliedenergistics2 aebasename=appliedenergistics2
extended=extended_life extended=extended_life
extendedversion=v49u extendedversion=v49v
######################################################### #########################################################
# Versions # # Versions #
######################################################### #########################################################
@@ -48,6 +48,11 @@ public class ContainerPartOreDictStorageBus extends AEBaseContainer
{ {
final IMEInventory<IAEItemStack> cellInv = this.part.getInternalHandler(); final IMEInventory<IAEItemStack> cellInv = this.part.getInternalHandler();
if( cellInv == null )
{
return;
}
Set<Integer> oreIDs = new HashSet<>(); Set<Integer> oreIDs = new HashSet<>();
for( IAEItemStack itemStack : cellInv.getAvailableItems( AEApi.instance().storage().getStorageChannel( IItemStorageChannel.class ).createList() ) ) for( IAEItemStack itemStack : cellInv.getAvailableItems( AEApi.instance().storage().getStorageChannel( IItemStorageChannel.class ).createList() ) )
@@ -252,7 +252,7 @@ public class CraftingTreeProcess
pro.dive( job ); pro.dive( job );
} }
job.addBytes( this.crafts + 8 + this.bytes ); job.addBytes( this.crafts * 8 + this.bytes );
} }
IAEItemStack getAmountCrafted( IAEItemStack what2 ) IAEItemStack getAmountCrafted( IAEItemStack what2 )