Update 'controller/Controller.lua'
added automatic refuel
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user