OOOO SCARY RED ERROR COLOR
This commit is contained in:
parent
c9368f75ac
commit
908f4fa658
|
@ -17,6 +17,7 @@ centerHeight = round(height / 2) -- Defines the vertical center
|
|||
if arg[1] == nil then
|
||||
peripherals = peripheral.getNames() -- Gets peripherals to check if any disk drives are avavailable
|
||||
if #peripherals == 0 then
|
||||
term.setTextColor(colors.red)
|
||||
print "No drive"
|
||||
return false -- Exits if there's no disk drive
|
||||
else
|
||||
|
@ -29,9 +30,11 @@ if arg[1] == nil then
|
|||
end
|
||||
end
|
||||
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
|
||||
return false
|
||||
elseif driveCount == 0 then
|
||||
term.setTextColor(colors.red)
|
||||
print "No drive"
|
||||
return false -- Exits if there's no disk drive
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue