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