diff --git a/paper-api/src/main/java/org/bukkit/util/noise/NoiseGenerator.java b/paper-api/src/main/java/org/bukkit/util/noise/NoiseGenerator.java index dd5b0b46b8..10a46b00a8 100644 --- a/paper-api/src/main/java/org/bukkit/util/noise/NoiseGenerator.java +++ b/paper-api/src/main/java/org/bukkit/util/noise/NoiseGenerator.java @@ -17,7 +17,7 @@ public abstract class NoiseGenerator { * @return Floored value */ public static int floor(double x) { - return (int)Math.floor(x); + return x >= 0 ? (int) x : (int) x - 1; } protected static double fade(double x) {