mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-18 11:48:02 -04:00
Small fix to the error output
This commit is contained in:
parent
8c4d2e2936
commit
f5326c987c
@ -27,13 +27,13 @@ autoRefuel = input[5] or "false"
|
|||||||
|
|
||||||
if mazeWidth < 2 or mazeLength < 2 or cellHeight < 1 or cellDiameter < 1 or autoRefuel ~= "true" and autoRefuel ~= "false" then
|
if mazeWidth < 2 or mazeLength < 2 or cellHeight < 1 or cellDiameter < 1 or autoRefuel ~= "true" and autoRefuel ~= "false" then
|
||||||
print("Error!(Note: Width and Length have to be > 1)")
|
print("Error!(Note: Width and Length have to be > 1)")
|
||||||
print("Usage: MazeGen(int:MazeWidth int:MazeLength int:CellHeight int:CellDiameter bool:AutoRefuel)")
|
print("Usage: maze int:MazeWidth int:MazeLength int:CellHeight int:CellDiameter bool:AutoRefuel")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
if component.isAvailable("generator") == false and autoRefuel == "true" then
|
if component.isAvailable("generator") == false and autoRefuel == "true" then
|
||||||
print("Error! Missing Generator Upgrade")
|
print("Error! Missing Generator Upgrade")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
term.clear() term.setCursor(1, 1)
|
term.clear() term.setCursor(1, 1)
|
||||||
@ -54,7 +54,7 @@ function refuel()
|
|||||||
|
|
||||||
for i = 1, 16 do
|
for i = 1, 16 do
|
||||||
robot.select(i)
|
robot.select(i)
|
||||||
if component.generator.insert(16) then break end
|
if component.generator.insert(16) then break end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user