unlocalized variables and added a disk drive seeking check
This commit is contained in:
parent
fe0c907e62
commit
2d760dd5d7
11
neodj.lua
11
neodj.lua
|
@ -1,7 +1,10 @@
|
||||||
local accentColor = colors.gray
|
accentColor = colors.gray
|
||||||
local buttonColor = colors.lightGray
|
buttonColor = colors.lightGray
|
||||||
local backgroundColor = colors.black
|
backgroundColor = colors.black
|
||||||
local drive = peripheral.getType("disk_drive")
|
drive = peripheral.getType("disk_drive")
|
||||||
|
if !drive then
|
||||||
|
print "No drive"
|
||||||
|
end
|
||||||
|
|
||||||
function playDisc()
|
function playDisc()
|
||||||
disk.playAudio(drive)
|
disk.playAudio(drive)
|
||||||
|
|
Loading…
Reference in a new issue