Update 'Controller/CropController.lua'
This commit is contained in:
parent
65d31d1959
commit
7820506e6a
@ -213,9 +213,11 @@ function CropController:main()
|
|||||||
cc.lastHarvest = os.clock()
|
cc.lastHarvest = os.clock()
|
||||||
cc:harvest()
|
cc:harvest()
|
||||||
cc:refreshDisplay()
|
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)
|
cc:updateTimeToHarvest(1, termHeight - 1)
|
||||||
sleep(0.5)
|
sleep(0.5)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
CropController:main()
|
Loading…
x
Reference in New Issue
Block a user