Require LMB to place blueprints (#979)

This commit is contained in:
Ethan Chapman 2020-12-07 12:37:49 -05:00 committed by GitHub
parent b080236b0b
commit 1230b873aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 14 deletions

View File

@ -110,6 +110,7 @@ export class HUDBlueprintPlacer extends BaseHUDPart {
}
}
if (button === enumMouseButton.left) {
const blueprint = this.currentBlueprint.get();
if (!blueprint) {
return;
@ -128,6 +129,7 @@ export class HUDBlueprintPlacer extends BaseHUDPart {
this.root.soundProxy.playUi(SOUNDS.placeBuilding);
}
}
}
/**
* Mose move handler