change an integer to a float in a division to avoid possible rounding error in apiary comb production formula (#117)

This commit is contained in:
Faltsolph authored and GitHub committed 2026-04-28 21:29:29 +00:00
1 parent 6d8d7110e1
commit 3b63133790
1 file changed
+1 -1
@@ -573,7 +573,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(entry.getValue() / 2, speed, prodModifier, 1f)) {
if (housing.getWorld().rand.nextFloat() < getFinalChance(entry.getValue() / 2f, speed, prodModifier, 1f)) {
products.add(entry.getKey().copy());
}
}