Protect against null items in import bus.

This commit is contained in:
AlgorithmX2 2014-09-02 13:36:31 -05:00
parent a1fcdcda80
commit de3db058c9

View file

@ -66,6 +66,9 @@ public class PartImportBus extends PartSharedItemBus implements IGridTickable, I
@Override
public boolean canInsert(ItemStack stack)
{
if ( stack == null || stack.getItem() == null )
return false;
IAEItemStack out = destination.injectItems( lastItemChecked = AEApi.instance().storage().createItemStack( stack ), Actionable.SIMULATE, mySrc );
if ( out == null )
return true;