Closed Tommsy64 closed 5 years ago
Thanks for submitting the bug report - this has already been squashed in a local dev branch and will be pushed soon.
If you're interested in being a beta tester, consider joining our Discord server and letting us know. We're about to release a proper build for testing.
Fixed in af2f20c
Affected Mod Versions:
Crash report
Affected method:
Seems like either
logConditionChance
is 0 orlogConditionNoise
is 0 orstrength >> logConditionNoise
.The only two Biomes I see that use
X_DIVIDED_BY_STRENGTH
areRealisticBiomeBOPGrove
andRealisticBiomeBOPMapleWoods
.Commit 1496705 removed the lines
.setLogConditionNoise(8f);
statements from these two Biomes while keeping thelogCondition
asX_DIVIDED_BY_STRENGTH
. Therefore, the IllegalArgumentException is probably caused by the 0 valuedlogConditionNoise
.Right now, the private field
logConditionNoise
has its only reference in#isValidLogCondition(float, rand)
and in its getter. The getter has no reference, and the field has no setter.Proposed Solutions
logConditionNoise
and set it to8f
and add check to make surelogConditionNoise
is not 0 before using it inrand.nextInt()
. ORlogConditionNoise
andX_DIVIDED_BY_STRENGTH