Split off more config sections

This commit is contained in:
dfsek
2020-10-03 03:13:09 -07:00
parent d15feb2e07
commit 188cf612fb
4 changed files with 119 additions and 108 deletions

View File

@@ -75,7 +75,7 @@ public class TerraChunkGenerator extends GaeaChunkGenerator {
if(super.getInterpolatedNoise(x, y, z) > 0) {
BlockData data = b.getGenerator().getPalette(y).get(paletteLevel, cx, cz);
chunk.setBlock(x, y, z, data);
if(paletteLevel == 0 && c.getSlabs() != null) {
if(paletteLevel == 0 && c.getSlabs() != null && y < 255) {
prepareBlockPart(data, chunk.getBlockData(x, y+1, z), chunk, new Vector(x, y+1, z), c.getSlabs(), c.getStairs(), c.getSlabThreshold());
}
paletteLevel++;