From a386187342d9e004156ad1f6d20874a23ba21130 Mon Sep 17 00:00:00 2001 From: Restart2008 Date: Sun, 7 Dec 2025 21:47:19 -0800 Subject: [PATCH] fix: Resolve async initialization and asset loading errors --- src/client/graphics/layers/UnitLayer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/graphics/layers/UnitLayer.ts b/src/client/graphics/layers/UnitLayer.ts index 51250d3ff..7a54e22d9 100644 --- a/src/client/graphics/layers/UnitLayer.ts +++ b/src/client/graphics/layers/UnitLayer.ts @@ -81,7 +81,7 @@ export class UnitLayer implements Layer { this.eventBus.on(MouseUpEvent, (e) => this.onMouseUp(e)); this.eventBus.on(TouchEvent, (e) => this.onTouch(e)); this.eventBus.on(UnitSelectionEvent, (e) => this.onUnitSelectionChange(e)); - this.initializeAssetsAndRedraw().catch((error) => + void this.initializeAssetsAndRedraw().catch((error) => console.error("Error in async initialization:", error), ); // Call the async method without awaiting }