1
0
Fork 0
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:
mint 2021-05-07 03:51:40 -04:00
parent c9368f75ac
commit 908f4fa658

View file

@ -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