🐛 修复了作物无法正常绘制种子状态的BUG

This commit is contained in:
2025-05-30 16:07:34 +08:00
parent 475865f1e9
commit 04a2cc7b4d
3 changed files with 4 additions and 13 deletions
+2 -6
View File
@@ -308,13 +308,9 @@ class CFarmManager:
# return True, plant, False, offsetX, offsetY
#如果没有成熟 则根据当前阶段进行绘制
currentStage = 0
elapsedTime = currentTime - soilInfo['plantTime']
for idx, thr in enumerate(phaseList, start=1):
if elapsedTime < thr:
currentStage = idx
break
elapsedTime = currentTime - soilInfo['plantTime']
currentStage = sum(1 for thr in phaseList if elapsedTime >= thr)
if currentStage <= 0:
if plantInfo['general'] == False: