mirror of
				https://github.com/tobspr/shapez.io.git
				synced 2025-06-13 13:04:03 +00:00 
			
		
		
		
	Pressing Q on the same building twice clears the cursor.
This commit is contained in:
		
							parent
							
								
									1092975f08
								
							
						
					
					
						commit
						bbeee11057
					
				@ -322,7 +322,12 @@ export class HUDBuildingPlacerLogic extends BaseHUDPart {
 | 
			
		||||
 | 
			
		||||
        // Try to extract the building
 | 
			
		||||
        const extracted = this.hack_reconstructMetaBuildingAndVariantFromBuilding(contents);
 | 
			
		||||
        if (!extracted) {
 | 
			
		||||
        // If the building we are picking is the same as the one we have, clear the cursor.
 | 
			
		||||
        if (
 | 
			
		||||
            !extracted ||
 | 
			
		||||
            (extracted.metaBuilding === this.currentMetaBuilding.get() &&
 | 
			
		||||
                extracted.variant === this.currentVariant.get())
 | 
			
		||||
        ) {
 | 
			
		||||
            this.currentMetaBuilding.set(null);
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user