diff --git a/Controller/CropController.lua b/Controller/CropController.lua index cd892cc..2702f93 100644 --- a/Controller/CropController.lua +++ b/Controller/CropController.lua @@ -1,12 +1,11 @@ CropController = {} -CropController.interval = 900 function CropController:new(t) t = t or {} setmetatable(t, self) self.__index = self t.matrix = {} - t.stats = {} + t.stats = {interval = 900} return t end @@ -151,11 +150,11 @@ function CropController:harvest() self:doAction(self.slaveID, "harvest") local s, duration = self:doAction(self.slaveID, "getLastHarvestDuration") if s == true then - self.stats.lastHarvestDuration = duration + self.stats["Last harvest duration"] = duration end local s, yield = self:doAction(self.slaveID, "getLastYield") if s == true then - self.stats.lastYield = yield + self.stats["Last yield"] = yield end self:getMatrix() end