From 71f6d4b8d35db85f60d20df3b887b0746ef7eeeb Mon Sep 17 00:00:00 2001 From: Ben Spiers Date: Tue, 16 Sep 2014 02:29:00 +0100 Subject: [PATCH] Make laser digging require constant illumination. --- src/main/java/mekanism/common/tile/TileEntityLaser.java | 1 + src/main/java/mekanism/common/tile/TileEntityLaserAmplifier.java | 1 + .../java/mekanism/common/tile/TileEntityLaserTractorBeam.java | 1 + 3 files changed, 3 insertions(+) diff --git a/src/main/java/mekanism/common/tile/TileEntityLaser.java b/src/main/java/mekanism/common/tile/TileEntityLaser.java index 3830271dc..c71557de3 100644 --- a/src/main/java/mekanism/common/tile/TileEntityLaser.java +++ b/src/main/java/mekanism/common/tile/TileEntityLaser.java @@ -88,6 +88,7 @@ public class TileEntityLaser extends TileEntityElectricBlock else if(on) { on = false; + diggingProgress = 0; Mekanism.packetHandler.sendToAllAround(new TileEntityMessage(Coord4D.get(this), getNetworkedData(new ArrayList())), Coord4D.get(this).getTargetPoint(50D)); } } diff --git a/src/main/java/mekanism/common/tile/TileEntityLaserAmplifier.java b/src/main/java/mekanism/common/tile/TileEntityLaserAmplifier.java index e3bd61f8b..29cd959a2 100644 --- a/src/main/java/mekanism/common/tile/TileEntityLaserAmplifier.java +++ b/src/main/java/mekanism/common/tile/TileEntityLaserAmplifier.java @@ -124,6 +124,7 @@ public class TileEntityLaserAmplifier extends TileEntityContainerBlock implement else if(on) { on = false; + diggingProgress = 0; Mekanism.packetHandler.sendToAllAround(new TileEntityMessage(Coord4D.get(this), getNetworkedData(new ArrayList())), Coord4D.get(this).getTargetPoint(50D)); } } diff --git a/src/main/java/mekanism/common/tile/TileEntityLaserTractorBeam.java b/src/main/java/mekanism/common/tile/TileEntityLaserTractorBeam.java index beeb5ce60..f3d41d602 100644 --- a/src/main/java/mekanism/common/tile/TileEntityLaserTractorBeam.java +++ b/src/main/java/mekanism/common/tile/TileEntityLaserTractorBeam.java @@ -112,6 +112,7 @@ public class TileEntityLaserTractorBeam extends TileEntityContainerBlock impleme else if(on) { on = false; + diggingProgress = 0; Mekanism.packetHandler.sendToAllAround(new TileEntityMessage(Coord4D.get(this), getNetworkedData(new ArrayList())), Coord4D.get(this).getTargetPoint(50D)); } }