From 908f4fa658e7c5fa2cc085f1f1b2e51ecf2b91f1 Mon Sep 17 00:00:00 2001 From: mint Date: Fri, 7 May 2021 03:51:40 -0400 Subject: [PATCH] OOOO SCARY RED ERROR COLOR --- rhythmblock.lua | 3 +++ 1 file changed, 3 insertions(+) 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