Apply AI TroopAdvantageLayer tick suggestion

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