From 213ddd36c9b2d2e1d7f6abcdccd7c9f19c459120 Mon Sep 17 00:00:00 2001 From: VariableVince <24507472+VariableVince@users.noreply.github.com> Date: Sun, 3 May 2026 17:23:34 +0200 Subject: [PATCH] Fix: remove unnecessary optional chain i left in (#3822) ## Description: In PR 3654 i left an unnecessary question mark. ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced ## Please put your Discord username so you can be contacted if a bug or regression is found: tryout33 --- src/client/graphics/layers/StructureIconsLayer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/graphics/layers/StructureIconsLayer.ts b/src/client/graphics/layers/StructureIconsLayer.ts index 5d879e740..76dd7e2ba 100644 --- a/src/client/graphics/layers/StructureIconsLayer.ts +++ b/src/client/graphics/layers/StructureIconsLayer.ts @@ -350,7 +350,7 @@ export class StructureIconsLayer implements Layer { (scale <= ZOOM_THRESHOLD || !this.renderSprites); this.levelsStage!.visible = scale > ZOOM_THRESHOLD && this.renderSprites; if (this.renderer) { - this.renderer?.render(this.rootStage); + this.renderer.render(this.rootStage); mainContext.drawImage(this.renderer.canvas, 0, 0); } }