Fixed block RNG

This commit is contained in:
Rosskaman 2021-04-19 13:35:19 +02:00
parent 5091e5da08
commit 236cb6a7b2
1 changed files with 1 additions and 1 deletions

View File

@ -245,7 +245,7 @@ public class BiomeRecipe implements Comparable<BiomeRecipe> {
for(GreenhouseBlockConversions conversion_option : conversionBlocks.get(bType)) {
// Roll the dice before bothering with checking the surrounding block as I think it's more common for greenhouses to be filled with convertable blocks and thus this dice roll wont be "wasted"
if(ThreadLocalRandom.current().nextInt(10000) < conversion_option.getProbability()) {
if(ThreadLocalRandom.current().nextDouble() < conversion_option.getProbability()) {
// Check if any of the adjacent blocks matches the required LocalMaterial, if there are any required LocalMaterials
if(conversion_option.getLocalMaterial() != null) {
for(BlockFace adjacent_block : ADJ_BLOCKS) {