diff --git a/src/movescript.lua b/src/movescript.lua index 5188896..996da0e 100644 --- a/src/movescript.lua +++ b/src/movescript.lua @@ -122,7 +122,7 @@ local function refuelAll(settings) if item ~= nil then for _, fuelName in pairs(fuels) do if item.name == fuelName then - t.select(i) + t.select(slot) if t.refuel(item.count) then refueled = true end break end @@ -147,7 +147,7 @@ local function refuelToAtLeast(requiredLevel, settings) local fuelUpdated = false while not fuelUpdated do os.pullEvent("turtle_inventory") - fuelUpdated = refuelAll() + fuelUpdated = refuelAll(settings) end end end