Update 'controller/Controller.lua'
This commit is contained in:
parent
bf0209b0d0
commit
9b3f6d50ff
@ -76,6 +76,7 @@ end
|
||||
function Controller:autoWood()
|
||||
self.stop = false
|
||||
while(self.stop == false) do
|
||||
self.turtleStatus = "checking tree"
|
||||
self:updateFuelLevel()
|
||||
self:updateDisplay(4)
|
||||
local update = self:updateTreeStatus()
|
||||
@ -103,7 +104,6 @@ function Controller:autoWood()
|
||||
end
|
||||
|
||||
function Controller:updateFuelLevel()
|
||||
self.turtleStatus = "checking tree"
|
||||
local s, fuelLevel = self:doAction(self.slaveID, "getFuelLevel")
|
||||
if(s == true) then
|
||||
self.turtleFuelLevel = fuelLevel
|
||||
|
Loading…
x
Reference in New Issue
Block a user