mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-03-02 03:39:21 +00:00
Fix deconstruct sound being played when right clicking hub
This commit is contained in:
@@ -263,8 +263,9 @@ export class HUDBuildingPlacerLogic extends BaseHUDPart {
|
||||
const tile = worldPos.toTileSpace();
|
||||
const contents = this.root.map.getTileContent(tile);
|
||||
if (contents) {
|
||||
this.root.logic.tryDeleteBuilding(contents);
|
||||
this.root.soundProxy.playUi(SOUNDS.destroyBuilding);
|
||||
if (this.root.logic.tryDeleteBuilding(contents)) {
|
||||
this.root.soundProxy.playUi(SOUNDS.destroyBuilding);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user