Merge branch 'main' of github.com:andrewlalis/movescript into main
This commit is contained in:
commit
2178004f65
|
@ -122,7 +122,7 @@ local function refuelAll(settings)
|
||||||
if item ~= nil then
|
if item ~= nil then
|
||||||
for _, fuelName in pairs(fuels) do
|
for _, fuelName in pairs(fuels) do
|
||||||
if item.name == fuelName then
|
if item.name == fuelName then
|
||||||
t.select(i)
|
t.select(slot)
|
||||||
if t.refuel(item.count) then refueled = true end
|
if t.refuel(item.count) then refueled = true end
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
@ -147,7 +147,7 @@ local function refuelToAtLeast(requiredLevel, settings)
|
||||||
local fuelUpdated = false
|
local fuelUpdated = false
|
||||||
while not fuelUpdated do
|
while not fuelUpdated do
|
||||||
os.pullEvent("turtle_inventory")
|
os.pullEvent("turtle_inventory")
|
||||||
fuelUpdated = refuelAll()
|
fuelUpdated = refuelAll(settings)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue