diff --git a/lava-collector b/lava-collector index 4c9f2a2..8c7775b 100644 --- a/lava-collector +++ b/lava-collector @@ -30,8 +30,9 @@ end local function returnToBase() print('returing to base') - for _ = 1, ForwardCounter do + while ForwardCounter > 0 do turtle.back() + ForwardCounter = ForwardCounter - 1 end end