mirror of
				https://github.com/tobspr/shapez.io.git
				synced 2025-06-13 13:04:03 +00:00 
			
		
		
		
	Fix crash when placing buildings
This commit is contained in:
		
							parent
							
								
									16f876b2e3
								
							
						
					
					
						commit
						41f091140d
					
				@ -127,7 +127,7 @@ export class HUDBuildingPlacer extends BaseHUDPart {
 | 
				
			|||||||
                var sy = y0 < y1 ? 1 : -1;
 | 
					                var sy = y0 < y1 ? 1 : -1;
 | 
				
			||||||
                var err = dx - dy;
 | 
					                var err = dx - dy;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                while (true) {
 | 
					                while (this.currentMetaBuilding.get()) {
 | 
				
			||||||
                    this.tryPlaceCurrentBuildingAt(new Vector(x0, y0));
 | 
					                    this.tryPlaceCurrentBuildingAt(new Vector(x0, y0));
 | 
				
			||||||
                    if (x0 === x1 && y0 === y1) break;
 | 
					                    if (x0 === x1 && y0 === y1) break;
 | 
				
			||||||
                    var e2 = 2 * err;
 | 
					                    var e2 = 2 * err;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user