Protect against null items in import bus.
This commit is contained in:
@@ -66,6 +66,9 @@ public class PartImportBus extends PartSharedItemBus implements IGridTickable, I
|
|||||||
@Override
|
@Override
|
||||||
public boolean canInsert(ItemStack stack)
|
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 );
|
IAEItemStack out = destination.injectItems( lastItemChecked = AEApi.instance().storage().createItemStack( stack ), Actionable.SIMULATE, mySrc );
|
||||||
if ( out == null )
|
if ( out == null )
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user