mirror of
				https://github.com/tobspr/shapez.io.git
				synced 2025-06-13 13:04:03 +00:00 
			
		
		
		
	Fix deconstruct sound being played when right clicking hub
This commit is contained in:
		
							parent
							
								
									c0e5595a3f
								
							
						
					
					
						commit
						97ef46bd52
					
				@ -8,6 +8,7 @@ export const CHANGELOG = [
 | 
			
		||||
            "Allow clicking on variants to select them",
 | 
			
		||||
            "Allow clicking 'Q' over a shape or color patch to automatically select the miner building (by Gerdon262)",
 | 
			
		||||
            "Add 'copy key' button to shape viewer",
 | 
			
		||||
            "Fix deconstruct sound being played when right clicking hub",
 | 
			
		||||
            "Add setting (on by default) to store the last used rotation per building instead of globally storing it (by Magos)",
 | 
			
		||||
            "Added chinese (traditional) translation",
 | 
			
		||||
            "Updated translations",
 | 
			
		||||
 | 
			
		||||
@ -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);
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user