Protect against null items in import bus.
This commit is contained in:
parent
a1fcdcda80
commit
de3db058c9
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue