Closed Thiago4532 closed 4 weeks ago
Thanks! Also, I think you should take a look at the default chance of a leaf pile spawning. Since before this PR the chance was 100% and now is 0.5%. Maybe this is too low, I am not sure.
leaf pile chance was actually baked into the block growth json file, thats why that config was removed (took me a bit to remember that)
The option to modify leaf pile spawn chance was removed a while ago. This commit reintroduces it and also fixes a bug that made this variable useless in the past. Instead of checking for LEAF_PILES_CHANCE before spawning a leaf, the code was comparing a random.nextFloat() with LEAF_PILES_REACH, but this value is always >= 1.0, so the piles were always spawning.