diff --git a/Controller/CropController.lua b/Controller/CropController.lua index 4520fc4..c71f68a 100644 --- a/Controller/CropController.lua +++ b/Controller/CropController.lua @@ -213,9 +213,11 @@ function CropController:main() cc.lastHarvest = os.clock() cc:harvest() cc:refreshDisplay() - while self.stats["Harvest Interval"] - (os.clock() - self.lastHarvest) > 0 do + while cc.stats["Harvest Interval"] - (os.clock() - self.lastHarvest) > 0 do cc:updateTimeToHarvest(1, termHeight - 1) sleep(0.5) end end -end \ No newline at end of file +end + +CropController:main() \ No newline at end of file