Apply AI TroopAdvantageLayer tick suggestion

This commit is contained in:
ralfisalhon
2026-03-17 00:12:53 +00:00
parent 7f0f924e22
commit e101f92fda
@@ -76,7 +76,7 @@ export class TroopAdvantageLayer implements Layer {
}
tick() {
if (!this.userSettings.troopAdvantageLayer()) {
if (!this.userSettings.troopAdvantageLayer() || !this.isVisible) {
if (this.labels.size > 0) this.clearAllLabels();
return;
}