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
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user