check if actually added before removing (#3639)

Fixes #3634
This commit is contained in:
fscan
2018-08-01 00:17:10 +02:00
committed by GitHub
parent ad1eff2adb
commit 8a72ebca89
2 changed files with 1 additions and 17 deletions
+1 -1
View File
@@ -120,7 +120,7 @@ public abstract class AEBasePart implements IPart, IGridProxyable, IActionHost,
@Override
public void securityBreak()
{
if( this.getItemStack().getCount() > 0 )
if( this.getItemStack().getCount() > 0 && this.getGridNode() != null )
{
final List<ItemStack> items = new ArrayList<>();
items.add( this.is.copy() );