mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-13 13:04:03 +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
|
||||
if (button === enumMouseButton.right && !metaBuilding) {
|
||||
if (
|
||||
button === enumMouseButton.right &&
|
||||
(!metaBuilding || !this.root.app.settings.getAllSettings().abortPlacementOnDeletion)
|
||||
) {
|
||||
this.currentlyDragging = true;
|
||||
this.currentlyDeleting = true;
|
||||
this.lastDragTile = this.root.camera.screenToWorld(pos).toTileSpace();
|
||||
@ -583,7 +586,10 @@ export class HUDBuildingPlacerLogic extends BaseHUDPart {
|
||||
}
|
||||
|
||||
// Cancel placement
|
||||
if (button === enumMouseButton.right && metaBuilding) {
|
||||
if (
|
||||
(button === enumMouseButton.right && metaBuilding) ||
|
||||
!this.root.app.settings.getAllSettings().abortPlacementOnDeletion
|
||||
) {
|
||||
this.currentMetaBuilding.set(null);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user