Pass variant to getHasDirectionLockAvailable
This commit is contained in:
parent
556caed760
commit
6ed7ec6010
|
@ -192,7 +192,7 @@ export class HUDBuildingPlacerLogic extends BaseHUDPart {
|
|||
const metaBuilding = this.currentMetaBuilding.get();
|
||||
return (
|
||||
metaBuilding &&
|
||||
metaBuilding.getHasDirectionLockAvailable() &&
|
||||
metaBuilding.getHasDirectionLockAvailable(this.currentVariant.get()) &&
|
||||
this.root.keyMapper.getBinding(KEYMAPPINGS.placementModifiers.lockBeltDirection).pressed
|
||||
);
|
||||
}
|
||||
|
|
|
@ -49,7 +49,7 @@ export class HUDKeybindingOverlay extends BaseHUDPart {
|
|||
!this.mapOverviewActive &&
|
||||
placer &&
|
||||
placer.currentMetaBuilding.get() &&
|
||||
placer.currentMetaBuilding.get().getHasDirectionLockAvailable()
|
||||
placer.currentMetaBuilding.get().getHasDirectionLockAvailable(placer.currentVariant.get())
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -52,8 +52,9 @@ export class MetaBuilding {
|
|||
|
||||
/**
|
||||
* Returns whether the building has the direction lock switch available
|
||||
* @param {string} variant
|
||||
*/
|
||||
getHasDirectionLockAvailable() {
|
||||
getHasDirectionLockAvailable(variant) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue