mirror of
				https://github.com/tobspr/shapez.io.git
				synced 2025-06-13 13:04:03 +00:00 
			
		
		
		
	Fix not being able to replace balts
This commit is contained in:
		
							parent
							
								
									cb9dd3c9c7
								
							
						
					
					
						commit
						1f7fab6455
					
				@ -104,7 +104,7 @@ export class GameLogic {
 | 
			
		||||
        const staticComp = original.components.StaticMapEntity;
 | 
			
		||||
        assert(staticComp, "Building is not static");
 | 
			
		||||
        const beltComp = original.components.Belt;
 | 
			
		||||
        if (beltComp) {
 | 
			
		||||
        if (beltComp && building instanceof MetaBeltBaseBuilding) {
 | 
			
		||||
            // Its a belt, check if it differs in either rotation or rotation variant
 | 
			
		||||
            if (staticComp.rotation !== rotation) {
 | 
			
		||||
                return true;
 | 
			
		||||
@ -114,7 +114,7 @@ export class GameLogic {
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        return false;
 | 
			
		||||
        return true;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user