Skip to content

Commit

Permalink
Took out nether ceiling until bug is fixed in server.
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Apr 28, 2019
1 parent 3d21b58 commit 2dab400
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 2dab400

Please sign in to comment.