predefining the drive count

This commit is contained in:
Lux Aliaga 2021-05-06 00:51:37 -04:00
parent 218eece1df
commit 74de1349bb

View file

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