mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-18 03:25:07 +00:00
Fix incorrect integer division in getRipeningStage (#85)
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user