From 2dab40077ff8b46c9ca4d893a80b1d4c4f8a8c47 Mon Sep 17 00:00:00 2001 From: tastybento Date: Sat, 27 Apr 2019 19:09:51 -0700 Subject: [PATCH] Took out nether ceiling until bug is fixed in server. https://hub.spigotmc.org/jira/browse/SPIGOT-4799 --- .../bskyblock/generators/ChunkGeneratorWorld.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/java/world/bentobox/bskyblock/generators/ChunkGeneratorWorld.java b/src/main/java/world/bentobox/bskyblock/generators/ChunkGeneratorWorld.java index d48a176..a5d7b6e 100644 --- a/src/main/java/world/bentobox/bskyblock/generators/ChunkGeneratorWorld.java +++ b/src/main/java/world/bentobox/bskyblock/generators/ChunkGeneratorWorld.java @@ -36,12 +36,14 @@ public ChunkGeneratorWorld(BSkyBlock addon) { @Override public ChunkData generateChunkData(World world, Random random, int chunkX, int chunkZ, ChunkGenerator.BiomeGrid biomeGrid) { this.rand = random; - if (world.getEnvironment().equals(World.Environment.NETHER)) { - Bukkit.getLogger().info("DEBUG: Nether " + world.getMaxHeight()); - } + /* + * TODO: Put back in when nether height is fixed on server. + * https://hub.spigotmc.org/jira/browse/SPIGOT-4799 + * if (world.getEnvironment().equals(World.Environment.NETHER) && addon.getSettings().isNetherRoof()) { return generateNetherRoofChunks(world, random); } + */ ChunkData result = createChunkData(world); if (!world.getEnvironment().equals(Environment.NORMAL)) { return result; @@ -82,7 +84,7 @@ private ChunkData generateNetherRoofChunks(World world, Random random) { for (int x = 0; x < 16; x++) { for (int z = 0; z < 16; z++) { // Do the ceiling - makeCeiling(result, x, z, world.getMaxHeight()); + makeCeiling(result, x, z, 255); } } return result;