From a90f9fbd5be79d3ac8e61d54c15069f25a14e060 Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Thu, 22 Dec 2022 21:54:32 +0100 Subject: [PATCH 1/2] Fixed refuel bug. --- src/movescript.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/movescript.lua b/src/movescript.lua index 1e32f57..b08d676 100644 --- a/src/movescript.lua +++ b/src/movescript.lua @@ -143,7 +143,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 From f0a0fd57897ce771212a9fa683458bdb9c595b53 Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Fri, 23 Dec 2022 08:27:45 +0100 Subject: [PATCH 2/2] Fixed refuel error with nil item. --- src/movescript.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/movescript.lua b/src/movescript.lua index b08d676..f77a6cc 100644 --- a/src/movescript.lua +++ b/src/movescript.lua @@ -118,7 +118,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