From 74de1349bbc54a6bfdc1325f1009047cb657e9bb Mon Sep 17 00:00:00 2001 From: mint Date: Thu, 6 May 2021 00:51:37 -0400 Subject: [PATCH] predefining the drive count --- neodj.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/neodj.lua b/neodj.lua index 4563c79..8a19e81 100644 --- a/neodj.lua +++ b/neodj.lua @@ -5,6 +5,7 @@ peripherals = peripheral.getNames() if #peripherals < 0 then print "No drive" else + driveCount = 0 for n = 1, #peripherals do local driveCheck = peripherals[n] if peripheral.getType(driveCheck) == "drive" then