mirror of
https://fem.mint.lgbt/m/Rhythmblock.git
synced 2024-08-14 20:27:11 +00:00
fixed no disk drive error
This commit is contained in:
parent
fe6a2ea247
commit
d75c3c4770
1 changed files with 2 additions and 2 deletions
|
@ -16,9 +16,9 @@ centerHeight = round(height / 2) -- Defines the vertical center
|
||||||
|
|
||||||
if arg[1] == nil then
|
if arg[1] == nil then
|
||||||
peripherals = peripheral.getNames() -- Gets peripherals to check if any disk drives are avavailable
|
peripherals = peripheral.getNames() -- Gets peripherals to check if any disk drives are avavailable
|
||||||
if #peripherals < 0 then
|
if #peripherals == 0 then
|
||||||
print "No drive"
|
print "No drive"
|
||||||
return true -- Exits if there's no disk drive
|
return false -- Exits if there's no disk drive
|
||||||
else
|
else
|
||||||
driveCount = 0
|
driveCount = 0
|
||||||
for n = 1, #peripherals do
|
for n = 1, #peripherals do
|
||||||
|
|
Loading…
Reference in a new issue