Extend the pipette hack to work with belts and wires.

This commit is contained in:
Moppler 2020-07-19 15:56:40 +01:00
parent c111d88dc9
commit ae5c33abd2
1 changed files with 8 additions and 0 deletions

View File

@ -416,6 +416,14 @@ export class HUDBuildingPlacerLogic extends BaseHUDPart {
) {
continue checkVariant;
}
if (metaBuilding.id === "wire" && entity.layer !== enumLayer.wires) {
continue checkVariant;
}
if (metaBuilding.id === "belt" && entity.layer !== enumLayer.regular) {
continue checkVariant;
}
matches.push({ metaBuilding, variant });
}
}