This commit is contained in:
kepler155c
2017-10-11 15:07:32 -04:00
parent 980c635037
commit f5dede540e
3 changed files with 14 additions and 7 deletions

View File

@@ -11,15 +11,15 @@ local multishell = _ENV.multishell
multishell.setTitle(multishell.getCurrent(), 'Music')
if not turtle then
error('This program can only be run on a turtle')
end
local radio = device.drive or error('No drive attached')
if radio.side ~= 'top' and radio.side ~= 'bottom' then
error('Disk drive must be above or below turtle')
end
if not turtle then
error('This program can only be run on a turtle')
end
UI:configure('Music', ...)
UI.Button.defaults.backgroundFocusColor = colors.gray