Browse Source

only start thread for mine being set to active

lakebane-master
FatBoy-DOTC 7 months ago
parent
commit
d09240d11a
  1. 2
      src/engine/objects/Mine.java

2
src/engine/objects/Mine.java

@ -575,10 +575,12 @@ public class Mine extends AbstractGameObject { @@ -575,10 +575,12 @@ public class Mine extends AbstractGameObject {
if (building != null && !this.isActive)
building.isDeranking.compareAndSet(true, false);
if(isAc) {
Thread zergMechanicThread = new Thread(new ZergMechanicThread(null, this));
zergMechanicThread.setName(this.zoneName + "Mine");
zergMechanicThread.start();
}
}
public boolean validForMine(Resource r) {
if (this.mineType == null)

Loading…
Cancel
Save