mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-02-23 00:09:23 +00:00
Setting now works again.
This commit is contained in:
parent
69f4202df2
commit
17a4159a1c
@ -574,7 +574,10 @@ export class HUDBuildingPlacerLogic extends BaseHUDPart {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Deletion
|
// Deletion
|
||||||
if (button === enumMouseButton.right && !metaBuilding) {
|
if (
|
||||||
|
button === enumMouseButton.right &&
|
||||||
|
(!metaBuilding || !this.root.app.settings.getAllSettings().abortPlacementOnDeletion)
|
||||||
|
) {
|
||||||
this.currentlyDragging = true;
|
this.currentlyDragging = true;
|
||||||
this.currentlyDeleting = true;
|
this.currentlyDeleting = true;
|
||||||
this.lastDragTile = this.root.camera.screenToWorld(pos).toTileSpace();
|
this.lastDragTile = this.root.camera.screenToWorld(pos).toTileSpace();
|
||||||
@ -583,7 +586,10 @@ export class HUDBuildingPlacerLogic extends BaseHUDPart {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Cancel placement
|
// Cancel placement
|
||||||
if (button === enumMouseButton.right && metaBuilding) {
|
if (
|
||||||
|
(button === enumMouseButton.right && metaBuilding) ||
|
||||||
|
!this.root.app.settings.getAllSettings().abortPlacementOnDeletion
|
||||||
|
) {
|
||||||
this.currentMetaBuilding.set(null);
|
this.currentMetaBuilding.set(null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user