Fixed refuel error with nil item.
This commit is contained in:
parent
a90f9fbd5b
commit
f0a0fd5789
|
@ -118,7 +118,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
|
||||||
|
|
Loading…
Reference in New Issue