Don't use chest slot as fuel
This commit is contained in:
parent
65f6555f44
commit
7dca84b128
@ -23,10 +23,15 @@ local function refuel(minFuel)
|
|||||||
while fuelLevel < minFuel do
|
while fuelLevel < minFuel do
|
||||||
Logger:debug("Checking fuel level:", fuelLevel)
|
Logger:debug("Checking fuel level:", fuelLevel)
|
||||||
for i=1,16 do
|
for i=1,16 do
|
||||||
|
if i == CHEST_SLOT then
|
||||||
|
goto continue
|
||||||
|
end
|
||||||
|
|
||||||
if turtle.getItemCount(i) > 0 then
|
if turtle.getItemCount(i) > 0 then
|
||||||
turtle.select(i)
|
turtle.select(i)
|
||||||
turtle.refuel()
|
turtle.refuel()
|
||||||
end
|
end
|
||||||
|
::continue::
|
||||||
end
|
end
|
||||||
fuelLevel = turtle.getFuelLevel()
|
fuelLevel = turtle.getFuelLevel()
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user