13
0
geforkt von Mirrors/Paper

Fixed fast floor in NoiseGenerator

By: Dinnerbone <dinnerbone@dinnerbone.com>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2011-07-18 18:19:43 +01:00
Ursprung 67a52cca79
Commit 2b6b449dbc

Datei anzeigen

@ -17,7 +17,7 @@ public abstract class NoiseGenerator {
* @return Floored value * @return Floored value
*/ */
public static int floor(double x) { 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) { protected static double fade(double x) {