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