Fix incorrect integer division in getRipeningStage (#85)

This commit is contained in:
Casey Primozic authored and GitHub committed 2026-02-18 02:20:41 -06:00
1 parent c988aa9870
commit b32f2a210c
1 file changed
+1 -1
@@ -387,7 +387,7 @@ public enum ExtraTreeFruitGene implements IAlleleFruit, IFruitProvider {
if (ripeningTime >= ripeningPeriod) {
return 1.0f;
}
return ripeningTime / ripeningPeriod;
return (float) ripeningTime / ripeningPeriod;
}
@Override