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

Fix miner highlight

This commit is contained in:
tobspr
2020-09-19 21:40:42 +02:00
parent 54f1c1dc93
commit 1f3991301d
2 changed files with 16 additions and 1 deletions

View File

@@ -45,6 +45,12 @@ export class HUDMinerHighlight extends BaseHUDPart {
return;
}
const lowerContents = this.root.map.getLowerLayerContentXY(hoveredTile.x, hoveredTile.y);
if (!lowerContents) {
// Not connected
return;
}
parameters.context.fillStyle = THEME.map.connectedMiners.overlay;
const connectedEntities = this.findConnectedMiners(contents);