This commit is contained in:
ZLOFENIX 2014-02-23 23:58:32 +04:00
parent 3177775b7d
commit 1453d2ac7c

View file

@ -53,6 +53,7 @@ public class TileEntityMiningLaser extends TileEntity implements IPeripheral, IG
private boolean isMining = false;
private boolean isQuarry = false;
private boolean useDeiterium = false;
private boolean AENetworkReady = false;
private String[] methodsArray =
{
@ -178,7 +179,7 @@ public class TileEntityMiningLaser extends TileEntity implements IPeripheral, IG
if (stacks != null)
for (ItemStack stack : stacks)
{
if (grid != null)
if (grid != null && AENetworkReady)
putInGrid(stack);
else
putInChest(findChest(), stack);
@ -237,7 +238,7 @@ public class TileEntityMiningLaser extends TileEntity implements IPeripheral, IG
Block block = Block.blocksList[blockID];
if (block == null)
return null;
if (useDeiterium && grid != null)
if (useDeiterium && grid != null && AENetworkReady)
{
IMEInventoryHandler cellArray = grid.getCellArray();
if (cellArray != null)
@ -694,4 +695,14 @@ public class TileEntityMiningLaser extends TileEntity implements IPeripheral, IG
{
return true;
}
public void setNetworkReady( boolean isReady )
{
AENetworkReady = isReady;
}
public boolean isMachineActive()
{
return true;
}
}