Update 'controller/Controller.lua'

This commit is contained in:
manuel 2023-01-07 21:58:39 +00:00
parent 57b75dc948
commit bf0209b0d0

View File

@ -104,7 +104,7 @@ end
function Controller:updateFuelLevel() function Controller:updateFuelLevel()
self.turtleStatus = "checking tree" 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
end end