|  |  | @ -147,13 +147,13 @@ function registerBuilding(args) | 
			
		
	
		
		
			
				
					
					|  |  |  |     end |  |  |  |     end | 
			
		
	
		
		
			
				
					
					|  |  |  |     --animations and connections next: |  |  |  |     --animations and connections next: | 
			
		
	
		
		
			
				
					
					|  |  |  |     local gears |  |  |  |     local gears | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     local frames | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     local frameLength |  |  |  |     local frameLength | 
			
		
	
		
		
			
				
					
					|  |  |  |     local animate=args.animate |  |  |  |     local animate=args.animate | 
			
		
	
		
		
			
				
					
					|  |  |  |     if not auto_gears then |  |  |  |     if not auto_gears then | 
			
		
	
		
		
			
				
					
					|  |  |  |         gears=args.gears or {} |  |  |  |         gears=args.gears or {} | 
			
		
	
		
		
			
				
					
					|  |  |  |         frameLength=1         |  |  |  |         frameLength=1         | 
			
		
	
		
		
			
				
					
					|  |  |  |         local frames |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         if animate~=nil then |  |  |  |         if animate~=nil then | 
			
		
	
		
		
			
				
					
					|  |  |  |             frameLength=animate.frameLength |  |  |  |             frameLength=animate.frameLength | 
			
		
	
		
		
			
				
					
					|  |  |  |             if animate.isMechanical then |  |  |  |             if animate.isMechanical then | 
			
		
	
	
		
		
			
				
					|  |  | 
 |