Fixed Secondary Species Primary Production (#40)

Calling Math.round on probabilities is a logical error
This commit is contained in:
hacatu authored and GitHub committed 2023-02-16 10:17:58 +01:00
1 parent 7817587067
commit 983b5bc8dd
1 file changed
+1 -1
@@ -524,7 +524,7 @@ public class Bee extends IndividualLiving implements IBee {
// / Secondary Products
for (Map.Entry<ItemStack, Float> entry : secondary.getProductChances().entrySet()) {
if (housing.getWorld().rand.nextFloat()
< getFinalChance(Math.round(entry.getValue() / 2), speed, prodModifier, 1f)) {
< getFinalChance(entry.getValue() / 2, speed, prodModifier, 1f)) {
products.add(entry.getKey().copy());
}
}