mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-12-09 00:01:51 +00:00
Change uses of getSetting() to getAllSettings().
This commit is contained in:
parent
f252d0088c
commit
db023e45ac
@ -131,12 +131,12 @@ export class HUDBuildingPlacer extends BaseHUDPart {
|
|||||||
if (
|
if (
|
||||||
button === enumMouseButton.right &&
|
button === enumMouseButton.right &&
|
||||||
(!this.currentMetaBuilding.get() ||
|
(!this.currentMetaBuilding.get() ||
|
||||||
!this.root.app.settings.getSetting("abortPlacementOnDeletion"))
|
!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();
|
||||||
if (this.root.app.settings.getSetting("abortPlacementOnDeletion")) {
|
if (this.root.app.settings.getAllSettings().abortPlacementOnDeletion) {
|
||||||
this.currentMetaBuilding.set(null);
|
this.currentMetaBuilding.set(null);
|
||||||
}
|
}
|
||||||
return STOP_PROPAGATION;
|
return STOP_PROPAGATION;
|
||||||
@ -443,7 +443,7 @@ export class HUDBuildingPlacer extends BaseHUDPart {
|
|||||||
if (cancelAction) {
|
if (cancelAction) {
|
||||||
if (
|
if (
|
||||||
this.currentMetaBuilding.get() &&
|
this.currentMetaBuilding.get() &&
|
||||||
this.root.app.settings.getSetting("abortPlacementOnDeletion")
|
this.root.app.settings.getAllSettings().abortPlacementOnDeletion
|
||||||
) {
|
) {
|
||||||
this.currentMetaBuilding.set(null);
|
this.currentMetaBuilding.set(null);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user