1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-13 13:04:03 +00:00

mouseDown readability

This commit is contained in:
Aurumaker72 2021-02-21 16:11:34 +01:00
parent 14d09a7d52
commit 34ea3c85c9

View File

@ -202,11 +202,7 @@ export class HUDMassSelector extends BaseHUDPart {
* @param {enumMouseButton} mouseButton
*/
onMouseDown(pos, mouseButton) {
if (!this.root.keyMapper.getBinding(KEYMAPPINGS.massSelect.massSelectStart).pressed) {
return;
}
if (mouseButton !== enumMouseButton.left) {
if (!(this.root.keyMapper.getBinding(KEYMAPPINGS.massSelect.massSelectStart).pressed) || mouseButton !== enumMouseButton.left) {
return;
}