Merge pull request #395 from tcooc/patch-6

Markers destroy all lasers when broken.
This commit is contained in:
SirSengir 2012-11-04 03:45:28 -08:00
commit 26213ba615

View file

@ -354,13 +354,21 @@ public class TileMarker extends TileBuildCraft implements IAreaProvider {
entity.setDead();
}
}
markerOrigin.lasers = null;
}
for (TileWrapper m : o.vect) {
TileMarker mark = m.getMarker(worldObj);
if (mark != null) {
if(mark.lasers != null) {
for (EntityBlock entity : mark.lasers) {
if (entity != null) {
entity.setDead();
}
}
mark.lasers = null;
}
if (mark != this) {
mark.origin = new Origin();
@ -368,7 +376,6 @@ public class TileMarker extends TileBuildCraft implements IAreaProvider {
}
}
markerOrigin.lasers = null;
if (markerOrigin != this) {
markerOrigin.origin = new Origin();