From 2d760dd5d78ffd2155b19b02fe08e987d036386e Mon Sep 17 00:00:00 2001 From: mint Date: Thu, 6 May 2021 00:24:30 -0400 Subject: [PATCH] unlocalized variables and added a disk drive seeking check --- neodj.lua | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/neodj.lua b/neodj.lua index 82757c9..f259fd6 100644 --- a/neodj.lua +++ b/neodj.lua @@ -1,7 +1,10 @@ -local accentColor = colors.gray -local buttonColor = colors.lightGray -local backgroundColor = colors.black -local drive = peripheral.getType("disk_drive") +accentColor = colors.gray +buttonColor = colors.lightGray +backgroundColor = colors.black +drive = peripheral.getType("disk_drive") +if !drive then + print "No drive" +end function playDisc() disk.playAudio(drive)