Update 'Controller/CropController.lua'

This commit is contained in:
manuel 2023-01-14 10:33:17 +00:00
parent 65d31d1959
commit 7820506e6a

View File

@ -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
end
CropController:main()