Fix sea height to match config.yml

https://github.com/BentoBoxWorld/BSkyBlock/issues/68
This commit is contained in:
tastybento 2019-02-04 23:07:30 -08:00
parent 92e9d3d21e
commit 475988d451

View File

@ -43,7 +43,7 @@ public class ChunkGeneratorWorld extends ChunkGenerator {
if (world.getEnvironment().equals(Environment.NORMAL)) {
biomeGrid.setBiome(x, z, addon.getSettings().getDefaultBiome());
}
for (int y = 0; y < addon.getSettings().getSeaHeight(); y++) {
for (int y = 0; y <= addon.getSettings().getSeaHeight(); y++) {
result.setBlock(x, y, z, Material.WATER);
}
@ -51,6 +51,9 @@ public class ChunkGeneratorWorld extends ChunkGenerator {
}
}
if (chunkX == 0 && chunkZ == 0) {
result.setBlock(0, 254, 0, Material.BEDROCK);
}
return result;
}