From 4cb2d387e9a2a827cabbd9fd8529878a09e6f657 Mon Sep 17 00:00:00 2001 From: mint Date: Fri, 7 May 2021 02:40:18 -0400 Subject: [PATCH] changed the command for exiting --- rhythmblock.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rhythmblock.lua b/rhythmblock.lua index 86abded..4ec9ac5 100644 --- a/rhythmblock.lua +++ b/rhythmblock.lua @@ -14,7 +14,7 @@ centerHeight = round(height / 2) -- Defines the vertical center peripherals = peripheral.getNames() -- Gets peripherals to check if any disk drives are avavailable if #peripherals < 0 then print "No drive" - os.exit() -- Exits if there's no disk drive + return true -- Exits if there's no disk drive else driveCount = 0 for n = 1, #peripherals do @@ -134,7 +134,7 @@ while true do playDisc() end elseif name == "q" then - os.exit() + return true end end end