diff --git a/rhythmblock.lua b/rhythmblock.lua index 7b836df..3723b54 100644 --- a/rhythmblock.lua +++ b/rhythmblock.lua @@ -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