.
This commit is contained in:
parent
c24a7254a6
commit
7978cfbe5f
@ -77,7 +77,7 @@ ForwardCounter = 0
|
||||
|
||||
despositRefill()
|
||||
while true do
|
||||
if turtle.getFuelLevel() < ForwardCounter then
|
||||
if turtle.getFuelLevel() <= ForwardCounter then
|
||||
print('not enough fuel to return. trying to refuel')
|
||||
if not refuel() then
|
||||
print('refulling failed. probably the end of the lava lake. returning to base')
|
||||
@ -100,6 +100,7 @@ while true do
|
||||
else
|
||||
print('hit a wall - returning to base')
|
||||
returnToBase()
|
||||
despositRefill()
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user