only start thread for mine being set to active
This commit is contained in:
@@ -575,9 +575,11 @@ public class Mine extends AbstractGameObject {
|
|||||||
if (building != null && !this.isActive)
|
if (building != null && !this.isActive)
|
||||||
building.isDeranking.compareAndSet(true, false);
|
building.isDeranking.compareAndSet(true, false);
|
||||||
|
|
||||||
Thread zergMechanicThread = new Thread(new ZergMechanicThread(null, this));
|
if(isAc) {
|
||||||
zergMechanicThread.setName(this.zoneName + "Mine");
|
Thread zergMechanicThread = new Thread(new ZergMechanicThread(null, this));
|
||||||
zergMechanicThread.start();
|
zergMechanicThread.setName(this.zoneName + "Mine");
|
||||||
|
zergMechanicThread.start();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean validForMine(Resource r) {
|
public boolean validForMine(Resource r) {
|
||||||
|
|||||||
Reference in New Issue
Block a user