diff --git a/src/js/game/systems/logic_gate.js b/src/js/game/systems/logic_gate.js index 1921cb9d..faf95110 100644 --- a/src/js/game/systems/logic_gate.js +++ b/src/js/game/systems/logic_gate.js @@ -228,7 +228,7 @@ export class LogicGateSystem extends GameSystemWithFilter { const lowerLayer = /** @type {import("../shape_definition").ShapeLayer} */ (definition.layers[0]); const topRightContent = lowerLayer[0]; - if (!topRightContent) { + if (!topRightContent || topRightContent.subShape === null) { return [null, null]; }