Skip to content

Commit

Permalink
Fix ore generation config bounds (#6125), adjust turbine formation lo…
Browse files Browse the repository at this point in the history
…gic (#6121), fix energy conversion config naming and Gas Generator generation rate miscalculation (#6126)
  • Loading branch information
aidancbrady committed May 2, 2020
1 parent 0b3c49e commit a1772c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/mekanism/common/config/WorldConfig.java
Expand Up @@ -68,9 +68,9 @@ private OreConfig(IMekanismConfig config, ForgeConfigSpec.Builder builder, Strin
//The max for perChunk and vein size are the values of the max number of blocks in a chunk.
//TODO: Improve upon it at some point so that the max vein size then gets determined by per chunk as well
this.perChunk = CachedIntValue.wrap(config, builder.comment("Chance that " + ore + " generates in a chunk.")
.defineInRange("perChunk", perChunk, 1, 65536));
.defineInRange("perChunk", perChunk, 1, 512));
this.maxVeinSize = CachedIntValue.wrap(config, builder.comment("Maximum number of blocks in a vein of " + ore + ".")
.defineInRange("maxVeinSize", maxVeinSize, 1, 65536));
.defineInRange("maxVeinSize", maxVeinSize, 1, 512));
//TODO: See if we can use world.getHeight() somehow
this.maxHeight = CachedIntValue.wrap(config, builder.comment("Base maximum height (exclusive) that veins of " + ore + " can spawn. Height is calculated by: random.nextInt(maxHeight - topOffset) + bottomOffset")
.defineInRange("maxHeight", maxHeight, 1, 256));
Expand Down

0 comments on commit a1772c4

Please sign in to comment.