Fixed Network Tool crashing on null ItemStacks.

This commit is contained in:
Gunther De Wachter
2017-06-30 18:35:38 +02:00
parent 16a0872d06
commit 76f17ba53c
3 changed files with 3 additions and 3 deletions
@@ -63,7 +63,7 @@ public class AENetworkProxy implements IGridBlock
private final String nbtName; // name
private AEColor myColor = AEColor.TRANSPARENT;
private NBTTagCompound data = null; // input
private ItemStack myRepInstance;
private ItemStack myRepInstance = ItemStack.EMPTY;
private boolean isReady = false;
private IGridNode node = null;
private EnumSet<EnumFacing> validSides;
@@ -65,7 +65,7 @@ public class PartToggleBus extends PartBasicState
public static final IPartModel MODELS_HAS_CHANNEL = new PartModel( MODEL_BASE, MODEL_STATUS_HAS_CHANNEL );
private static final int REDSTONE_FLAG = 4;
private final AENetworkProxy outerProxy = new AENetworkProxy( this, "outer", null, true );
private final AENetworkProxy outerProxy = new AENetworkProxy( this, "outer", ItemStack.EMPTY, true );
private IGridConnection connection;
private boolean hasRedstone = false;
@@ -63,7 +63,7 @@ public class PartP2PTunnelME extends PartP2PTunnel<PartP2PTunnelME> implements I
}
private final Connections connection = new Connections( this );
private final AENetworkProxy outerProxy = new AENetworkProxy( this, "outer", null, true );
private final AENetworkProxy outerProxy = new AENetworkProxy( this, "outer", ItemStack.EMPTY, true );
public PartP2PTunnelME( final ItemStack is )
{