From 2c1d52761fff31084b381a129a6949840283f13f Mon Sep 17 00:00:00 2001 From: tastybento Date: Tue, 6 Feb 2018 13:54:23 -0800 Subject: [PATCH] Cast operand to double. --- .../tastybento/bskyblock/generators/ChunkGeneratorWorld.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/us/tastybento/bskyblock/generators/ChunkGeneratorWorld.java b/src/main/java/us/tastybento/bskyblock/generators/ChunkGeneratorWorld.java index daabe31b2..eab94633b 100644 --- a/src/main/java/us/tastybento/bskyblock/generators/ChunkGeneratorWorld.java +++ b/src/main/java/us/tastybento/bskyblock/generators/ChunkGeneratorWorld.java @@ -91,7 +91,7 @@ public class ChunkGeneratorWorld extends ChunkGenerator { } // Next three layers are a mix of netherrack and air for (int y = 5; y < 8; y++) { - double r = gen.noise(x, maxHeight - y, z, 0.5, 0.5); + double r = gen.noise(x, (double)maxHeight - y, z, 0.5, 0.5); if (r > 0D) { result.setBlock(x, (maxHeight - y), z, Material.NETHERRACK); } else { @@ -99,7 +99,7 @@ public class ChunkGeneratorWorld extends ChunkGenerator { } } // Layer 8 may be glowstone - double r = gen.noise(x, maxHeight - 8, z, random.nextFloat(), random.nextFloat()); + double r = gen.noise(x, (double)maxHeight - 8, z, random.nextFloat(), random.nextFloat()); if (r > 0.5D) { // Have blobs of glowstone switch (random.nextInt(4)) {