Fix
This commit is contained in:
parent
ba6bf5a102
commit
b32923a8fd
@ -215,10 +215,12 @@ local state_machine = {
|
||||
["RESUPPLY_FUEL"] = function()
|
||||
greedy_move(FUEL_TARGET.x, FUEL_TARGET.z, FUEL_TARGET.o)
|
||||
|
||||
local fuel_count = math.ceil(FUEL_LEVEL_TARGET - turtle.getFuelLevel() / 80)
|
||||
if turtle.getFuelLevel() < FUEL_LEVEL_TARGET then
|
||||
local fuel_count = math.ceil((FUEL_LEVEL_TARGET - turtle.getFuelLevel()) / 80)
|
||||
turtle.select(REFUEL_SLOT)
|
||||
ensure_item_count(fuel_count)
|
||||
turtle.refuel()
|
||||
end
|
||||
|
||||
T.state.current_row = 0
|
||||
T.state.current_tree = 0
|
||||
|
Loading…
Reference in New Issue
Block a user