diff --git a/quarry.lua b/quarry.lua index 646cd3c..c982d4e 100644 --- a/quarry.lua +++ b/quarry.lua @@ -23,10 +23,15 @@ local function refuel(minFuel) while fuelLevel < minFuel do Logger:debug("Checking fuel level:", fuelLevel) for i=1,16 do + if i == CHEST_SLOT then + goto continue + end + if turtle.getItemCount(i) > 0 then turtle.select(i) turtle.refuel() end + ::continue:: end fuelLevel = turtle.getFuelLevel() end