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:
parent
218eece1df
commit
74de1349bb
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue