test
This commit is contained in:
parent
784f7089bf
commit
11b83e3c36
@ -21,7 +21,7 @@ local function refuelFromInventory(minRequired)
|
||||
logger.log(string.format("Refueled +%d from slot %d", added, slot))
|
||||
if after >= minRequired then break end
|
||||
else
|
||||
logger.log(string.format("⚠️ Refuel failed from slot %d", slot))
|
||||
logger.log(string.format("Refuel failed from slot %d", slot))
|
||||
end
|
||||
end
|
||||
end
|
||||
@ -35,7 +35,7 @@ local function refuelIfNeeded()
|
||||
if fuel == "unlimited" then return true end
|
||||
|
||||
if fuel < MIN_FUEL then
|
||||
logger.log("⚠️ Low fuel, attempting to refuel...")
|
||||
logger.log("Low fuel, attempting to refuel...")
|
||||
local added = refuelFromInventory(MIN_FUEL)
|
||||
fuel = turtle.getFuelLevel()
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user