Update 'controller/Controller.lua'

added automatic refuel
This commit is contained in:
manuel 2023-01-10 20:22:40 +00:00
parent 9ec4ba1e93
commit ddf13c76e4

View File

@ -100,6 +100,9 @@ function Controller:autoWood()
self:updateDisplay(4) self:updateDisplay(4)
self:doAction(self.slaveID, "plantTree") self:doAction(self.slaveID, "plantTree")
end end
if self.turtleFuelLevel < 1000 then
self:doAction(self.slaveID, "refuel")
end
end end
end end