Make startfuel more robust
This commit is contained in:
parent
20caa43f8b
commit
b8a9ab5342
@ -1,6 +1,7 @@
|
|||||||
args = {...}
|
args = {...}
|
||||||
x, z, direction = 0, 0, 0
|
x, z, direction = 0, 0, 0
|
||||||
turtlestate = {
|
turtlestate = {
|
||||||
|
startfuel = 0,
|
||||||
name = os.getComputerLabel(),
|
name = os.getComputerLabel(),
|
||||||
id = os.getComputerID(),
|
id = os.getComputerID(),
|
||||||
fuel = "",
|
fuel = "",
|
||||||
@ -637,8 +638,7 @@ function doRefuel2()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
updateState({ startfuel = turtle.getFuelLevel() })
|
updateState({ startfuel = turtle.getFuelLevel() })
|
||||||
print(turtlestate["startfuel"])
|
--print(turtlestate["startfuel"])
|
||||||
sleep(4)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
slots = { {7,-6}, {7, -7}, {7, -8}, {7,-5}, {7,-4} }
|
slots = { {7,-6}, {7, -7}, {7, -8}, {7,-5}, {7,-4} }
|
||||||
|
Loading…
Reference in New Issue
Block a user