Skip to content

Commit

Permalink
Fix belt planner shortcut being shown always
Browse files Browse the repository at this point in the history
  • Loading branch information
tobspr committed Jun 21, 2020
1 parent 5e83c46 commit 969b7a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/game/hud/parts/keybinding_overlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down Expand Up @@ -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,
},

{
Expand Down

0 comments on commit 969b7a7

Please sign in to comment.