unlocalized variables and added a disk drive seeking check

This commit is contained in:
mint 2021-05-06 00:24:30 -04:00
parent fe0c907e62
commit 2d760dd5d7
1 changed files with 7 additions and 4 deletions

View File

@ -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)