From d75c3c4770de255f67b8e258d31a3d75c9f0cc96 Mon Sep 17 00:00:00 2001 From: mint Date: Fri, 7 May 2021 03:45:42 -0400 Subject: [PATCH] fixed no disk drive error --- rhythmblock.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rhythmblock.lua b/rhythmblock.lua index 099565a..25cdf04 100644 --- a/rhythmblock.lua +++ b/rhythmblock.lua @@ -16,9 +16,9 @@ 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 + if #peripherals == 0 then print "No drive" - return true -- Exits if there's no disk drive + return false -- Exits if there's no disk drive else driveCount = 0 for n = 1, #peripherals do