Fix belt planner shortcut being shown always

This commit is contained in:
tobspr 2020-06-21 23:01:42 +02:00
parent 5e83c4642b
commit 969b7a74d4
1 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ export class HUDKeybindingOverlay extends BaseHUDPart {
* it supports the belt planner
* @returns {boolean}
*/
get buildingPlacementBeltPlanner() {
get buildingPlacementSupportsBeltPlanner() {
const placer = this.root.hud.parts.buildingPlacer;
return (
!this.mapOverviewActive &&
@ -225,7 +225,7 @@ export class HUDKeybindingOverlay extends BaseHUDPart {
// Belt planner
label: T.ingame.keybindingsOverlay.lockBeltDirection,
keys: [k.placementModifiers.lockBeltDirection],
condition: () => this.buildingPlacementActive && !this.beltPlannerActive,
condition: () => this.buildingPlacementSupportsBeltPlanner && !this.beltPlannerActive,
},
{