mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-03-02 03:39:21 +00:00
Fix crash
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user