From 1453d2ac7cc940c4167eeb837e562da5861dd34a Mon Sep 17 00:00:00 2001 From: ZLOFENIX Date: Sun, 23 Feb 2014 23:58:32 +0400 Subject: [PATCH] AE r14 --- src/cr0s/WarpDrive/TileEntityMiningLaser.java | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/cr0s/WarpDrive/TileEntityMiningLaser.java b/src/cr0s/WarpDrive/TileEntityMiningLaser.java index d827b998..f0319b07 100644 --- a/src/cr0s/WarpDrive/TileEntityMiningLaser.java +++ b/src/cr0s/WarpDrive/TileEntityMiningLaser.java @@ -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; + } }