mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
Button fix when right click with placement building (#1319)
This commit is contained in:
parent
c346a25d6a
commit
97434a8e4f
@ -22,7 +22,9 @@ export class HUDLeverToggle extends BaseHUDPart {
|
|||||||
leverComp.toggled = !leverComp.toggled;
|
leverComp.toggled = !leverComp.toggled;
|
||||||
return STOP_PROPAGATION;
|
return STOP_PROPAGATION;
|
||||||
} else if (button === enumMouseButton.right) {
|
} else if (button === enumMouseButton.right) {
|
||||||
|
if (!this.root.hud.parts.buildingPlacer.currentMetaBuilding) {
|
||||||
this.root.logic.tryDeleteBuilding(contents);
|
this.root.logic.tryDeleteBuilding(contents);
|
||||||
|
}
|
||||||
return STOP_PROPAGATION;
|
return STOP_PROPAGATION;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user