From 42927609c3095e61f2bcb54110f3bba6fb7d5c4f Mon Sep 17 00:00:00 2001 From: Ryan Barlow Date: Sat, 3 Jan 2026 20:10:34 +0000 Subject: [PATCH] Removed the misleading hideGhostControls() wrapper method --- src/client/graphics/layers/StructureIconsLayer.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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 ||