mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-20 20:12:19 +00:00
Fixed Secondary Species Primary Production (#40)
Calling Math.round on probabilities is a logical error
This commit is contained in:
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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user