mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-18 11:19:28 +00:00
Fixed floating point bug if productionModifier + tier is negative
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user