diff --git a/src/js/game/hud/parts/screenshot_exporter.js b/src/js/game/hud/parts/screenshot_exporter.js index bc3aed09..db10fa1a 100644 --- a/src/js/game/hud/parts/screenshot_exporter.js +++ b/src/js/game/hud/parts/screenshot_exporter.js @@ -337,7 +337,9 @@ export class HUDScreenshotExporter extends BaseHUDPart { this.root.systemMgr.systems.belt.drawBeltItems(parameters); this.root.map.drawForeground(parameters); this.root.systemMgr.systems.hub.draw(parameters); - this.root.hud.parts.wiresOverlay.draw(parameters); + if (this.root.hud.parts.wiresOverlay) { + this.root.hud.parts.wiresOverlay.draw(parameters); + } if (this.root.currentLayer === "wires") { this.root.map.drawWiresForegroundLayer(parameters); }