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