mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-07 18:14:01 +00:00
Fix belt planner placing down once a dialog pops up
This commit is contained in:
parent
749383a318
commit
7def60c050
@ -253,6 +253,12 @@ export class HUDBuildingPlacerLogic extends BaseHUDPart {
|
|||||||
* @see BaseHUDPart.update
|
* @see BaseHUDPart.update
|
||||||
*/
|
*/
|
||||||
update() {
|
update() {
|
||||||
|
// Abort placement if a dialog was shown in the meantime
|
||||||
|
if (this.root.hud.hasBlockingOverlayOpen()) {
|
||||||
|
this.abortPlacement();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Always update since the camera might have moved
|
// Always update since the camera might have moved
|
||||||
const mousePos = this.root.app.mousePosition;
|
const mousePos = this.root.app.mousePosition;
|
||||||
if (mousePos) {
|
if (mousePos) {
|
||||||
|
Loading…
Reference in New Issue
Block a user