From 3b268294df044278d13e4cd4335930f0d4d9539f Mon Sep 17 00:00:00 2001 From: tobspr Date: Mon, 7 Dec 2020 18:39:12 +0100 Subject: [PATCH] Minor adjustments --- src/js/changelog.js | 1 + src/js/game/hud/parts/blueprint_placer.js | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/js/changelog.js b/src/js/changelog.js index c7b142ba..34c10948 100644 --- a/src/js/changelog.js +++ b/src/js/changelog.js @@ -9,6 +9,7 @@ export const CHANGELOG = [ "Allow to cycle variants backwards with SHIFT + T", "Upgrade numbers now use roman numerals until tier 50 (by LeopoldTal)", "Add button to unpin shapes from the left side (by artemisSystem)", + "Fix middle mouse button also placing blueprints (by Eiim)", "Updated translations (Thanks to all contributors!)", ], }, diff --git a/src/js/game/hud/parts/blueprint_placer.js b/src/js/game/hud/parts/blueprint_placer.js index c3625209..b70fb82a 100644 --- a/src/js/game/hud/parts/blueprint_placer.js +++ b/src/js/game/hud/parts/blueprint_placer.js @@ -108,9 +108,7 @@ export class HUDBlueprintPlacer extends BaseHUDPart { this.abortPlacement(); return STOP_PROPAGATION; } - } - - if (button === enumMouseButton.left) { + } else if (button === enumMouseButton.left) { const blueprint = this.currentBlueprint.get(); if (!blueprint) { return;