1
0
Fork 0
mirror of https://fem.mint.lgbt/m/Rhythmblock.git synced 2024-08-14 20:27:11 +00:00

predefining the drive count

This commit is contained in:
mint 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 if #peripherals < 0 then
print "No drive" print "No drive"
else else
driveCount = 0
for n = 1, #peripherals do for n = 1, #peripherals do
local driveCheck = peripherals[n] local driveCheck = peripherals[n]
if peripheral.getType(driveCheck) == "drive" then if peripheral.getType(driveCheck) == "drive" then