1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-03-02 03:39:21 +00:00

Add wire bridges and fix Q on hub crash

This commit is contained in:
tobspr
2020-08-13 21:04:44 +02:00
parent ff02508361
commit efd8ba7ae9
25 changed files with 1064 additions and 898 deletions

View File

@@ -365,6 +365,14 @@ export class WireSystem extends GameSystemWithFilter {
});
}
}
// Check if its a tunnel, if so, go to the forwarded item
if (entity.components.WireTunnel) {
const forwardedTile = searchTile.add(offset);
contents.push(
...this.root.map.getLayersContentsMultipleXY(forwardedTile.x, forwardedTile.y)
);
}
}
}