Merge pull request #395 from tcooc/patch-6
Markers destroy all lasers when broken.
This commit is contained in:
commit
26213ba615
1 changed files with 9 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue