diff --git a/pom.xml b/pom.xml
index 1f1065b..27bf1c0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -58,14 +58,14 @@
2.0.9
- 1.17-R0.1-SNAPSHOT
- 1.18.0
+ 1.18-R0.1-SNAPSHOT
+ 1.20.0
${build.version}-SNAPSHOT
-LOCAL
- 1.15.2
+ 1.16.0
BentoBoxWorld_AcidIsland
bentobox-world
@@ -366,4 +366,4 @@
-
\ No newline at end of file
+
diff --git a/src/main/java/world/bentobox/acidisland/world/ChunkGeneratorWorld.java b/src/main/java/world/bentobox/acidisland/world/ChunkGeneratorWorld.java
index 69e094d..9230bc1 100644
--- a/src/main/java/world/bentobox/acidisland/world/ChunkGeneratorWorld.java
+++ b/src/main/java/world/bentobox/acidisland/world/ChunkGeneratorWorld.java
@@ -44,9 +44,9 @@ public class ChunkGeneratorWorld extends ChunkGenerator {
public ChunkData generateChunks(World world) {
ChunkData result = createChunkData(world);
- int sh = seaHeight.getOrDefault(world.getEnvironment(), 0);
- if (sh > 0) {
- result.setRegion(0, 0, 0, 16, sh + 1, 16, Material.WATER);
+ int sh = seaHeight.getOrDefault(world.getEnvironment(), world.getMinHeight());
+ if (sh > world.getMinHeight()) {
+ result.setRegion(0, world.getMinHeight(), 0, 16, sh + 1, 16, Material.WATER);
}
if (world.getEnvironment().equals(Environment.NETHER) && addon.getSettings().isNetherRoof()) {
roofChunk.forEach((k,v) -> result.setBlock(k.getBlockX(), world.getMaxHeight() + k.getBlockY(), k.getBlockZ(), v));
@@ -65,7 +65,7 @@ public class ChunkGeneratorWorld extends ChunkGenerator {
world.getEnvironment() == Environment.NETHER ? addon.getSettings().getDefaultNetherBiome() : addon.getSettings().getDefaultEndBiome();
for (int x = 0; x < 16; x+=4) {
for (int z = 0; z < 16; z+=4) {
- for (int y = 0; y < world.getMaxHeight(); y+=4) {
+ for (int y = world.getMinHeight(); y < world.getMaxHeight(); y+=4) {
biomeGrid.setBiome(x, y, z, biome);
}
}
@@ -158,4 +158,4 @@ public class ChunkGeneratorWorld extends ChunkGenerator {
private void setBlock(int x, int y, int z, Material m) {
roofChunk.put(new Vector(x, y, z), m);
}
-}
\ No newline at end of file
+}