Simple Gravel Ores

Simple Gravel Ores

700k Downloads

Crash when I:orePileChance=0

OrdinatorStouff opened this issue ยท 5 comments

commented

1.12
gravelores-1.7b.jar

When setting I:orePileChance=0 and creating a new world, client crashes. Console log says something about "value must be positive."

If you need more details let me know

commented

Fixed in version 1.8, which is now on CurseForge

commented

Ya, don't do that. I really need to make a release where I prevent all the possibly of crashes from the config.

I assume you were trying to disable oregen while still having the ores? Right now its supported to just backlist all the ores, but I'll add a more proper way to do it in the future.

commented

Okay that's fair and for now I just turned everything down to 1 but in my defense it's specifically instructed in the config comments to set to 0 to disable:

    # Chance per chunk that an ore pile will spawn. Set this to zero to disable generation. [range: 0 ~ 32767, default: 20]
    I:orePileChance=1
commented

Huh, must be an oversight. The code never had a specific case for it being 0, so its on my TODO list to fix.