mirror of
				https://fem.mint.lgbt/m/Rhythmblock.git
				synced 2024-08-14 20:27:11 +00:00 
			
		
		
		
	OOOO SCARY RED ERROR COLOR
This commit is contained in:
		
							parent
							
								
									c9368f75ac
								
							
						
					
					
						commit
						908f4fa658
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
					@ -17,6 +17,7 @@ centerHeight = round(height / 2) -- Defines the vertical center
 | 
				
			||||||
if arg[1] == nil then
 | 
					if arg[1] == nil then
 | 
				
			||||||
	peripherals = peripheral.getNames() -- Gets peripherals to check if any disk drives are avavailable
 | 
						peripherals = peripheral.getNames() -- Gets peripherals to check if any disk drives are avavailable
 | 
				
			||||||
	if #peripherals == 0 then
 | 
						if #peripherals == 0 then
 | 
				
			||||||
 | 
							term.setTextColor(colors.red)
 | 
				
			||||||
		print "No drive"
 | 
							print "No drive"
 | 
				
			||||||
		return false -- Exits if there's no disk drive
 | 
							return false -- Exits if there's no disk drive
 | 
				
			||||||
	else
 | 
						else
 | 
				
			||||||
| 
						 | 
					@ -29,9 +30,11 @@ if arg[1] == nil then
 | 
				
			||||||
			end
 | 
								end
 | 
				
			||||||
		end
 | 
							end
 | 
				
			||||||
		if driveCount > 1 then
 | 
							if driveCount > 1 then
 | 
				
			||||||
 | 
								term.setTextColor(colors.red)
 | 
				
			||||||
			print("Too many disk drives. Specify where the desired disk drive is by running 'rhythmbox [drive position]'") -- For safety reasons
 | 
								print("Too many disk drives. Specify where the desired disk drive is by running 'rhythmbox [drive position]'") -- For safety reasons
 | 
				
			||||||
			return false	
 | 
								return false	
 | 
				
			||||||
		elseif driveCount == 0 then
 | 
							elseif driveCount == 0 then
 | 
				
			||||||
 | 
								term.setTextColor(colors.red)
 | 
				
			||||||
			print "No drive"
 | 
								print "No drive"
 | 
				
			||||||
                	return false -- Exits if there's no disk drive
 | 
					                	return false -- Exits if there's no disk drive
 | 
				
			||||||
		end
 | 
							end
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue