Removed the misleading hideGhostControls() wrapper method

This commit is contained in:
Ryan Barlow
2026-01-03 20:10:34 +00:00
parent d05e6af733
commit 42927609c3
@@ -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 ||