From 0862f9589aaa802ee617ac4c1790fc90d9c00691 Mon Sep 17 00:00:00 2001 From: mint Date: Thu, 6 May 2021 00:15:32 -0400 Subject: [PATCH] added peripheral seeking --- neodj.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/neodj.lua b/neodj.lua index ed771b0..fc3c041 100644 --- a/neodj.lua +++ b/neodj.lua @@ -1,13 +1,14 @@ local accentColor = colors.gray local buttonColor = colors.lightGray local backgroundColor = colors.black +local drive = peripheral.getType("disk_drive") function playDisk() - disk.playAudio() + disk.playAudio(drive) end if disk.isPresent() and disk.hasAudio() then - playDisk() + playDisk(drive) elseif disk.isPresent() then print "Not a music disc" else