Update 'controller/Controller.lua'
added automatic refuel
This commit is contained in:
parent
9ec4ba1e93
commit
ddf13c76e4
@ -100,6 +100,9 @@ function Controller:autoWood()
|
||||
self:updateDisplay(4)
|
||||
self:doAction(self.slaveID, "plantTree")
|
||||
end
|
||||
if self.turtleFuelLevel < 1000 then
|
||||
self:doAction(self.slaveID, "refuel")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user