mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
Fix crash
This commit is contained in:
parent
296b76bf11
commit
1a6c91f4e9
@ -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];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user