mirror of
https://github.com/BentoBoxWorld/BSkyBlock.git
synced 2024-11-14 10:25:32 +01:00
Fix sea height to match config.yml
https://github.com/BentoBoxWorld/BSkyBlock/issues/68
This commit is contained in:
parent
92e9d3d21e
commit
475988d451
@ -43,7 +43,7 @@ public class ChunkGeneratorWorld extends ChunkGenerator {
|
|||||||
if (world.getEnvironment().equals(Environment.NORMAL)) {
|
if (world.getEnvironment().equals(Environment.NORMAL)) {
|
||||||
biomeGrid.setBiome(x, z, addon.getSettings().getDefaultBiome());
|
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);
|
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;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user