Fixed floating point bug if productionModifier + tier is negative

This commit is contained in:
Gabriel Eiseman committed 2023-07-14 19:34:34 -04:00
1 parent 7ffee78d26
commit 28ae5ebefb
1 file changed
+1 -1
@@ -551,7 +551,7 @@ public class Bee extends IndividualLiving implements IBee {
}
public static float getFinalChance(float chance, float beeSpeed, float productionModifier, float t) {
if (productionModifier < 0) {
if (productionModifier + t <= 0) {
return 0;
}
chance *= 100f;