diff --git a/src/client/graphics/layers/StructureIconsLayer.ts b/src/client/graphics/layers/StructureIconsLayer.ts index ee112e381..8cdbda711 100644 --- a/src/client/graphics/layers/StructureIconsLayer.ts +++ b/src/client/graphics/layers/StructureIconsLayer.ts @@ -275,7 +275,7 @@ export class StructureIconsLayer implements Layer { this.ghostUnit.range?.position.set(localX, localY); this.updateGhostControls(localX, localY, rect); } else { - this.hideGhostControls(); + this.destroyGhostControls(); const tile = this.transformHandler.screenToWorldCoordinates( localX, localY, @@ -662,10 +662,6 @@ export class StructureIconsLayer implements Layer { this.ghostControls = null; } - private hideGhostControls() { - this.destroyGhostControls(); - } - private updateGhostControls(localX: number, localY: number, rect: DOMRect) { if ( !this.ghostUnit ||