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:
@@ -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)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user