geforkt von Mirrors/Paper
Fixed fast floor in NoiseGenerator
By: Dinnerbone <dinnerbone@dinnerbone.com>
Dieser Commit ist enthalten in:
Ursprung
67a52cca79
Commit
2b6b449dbc
@ -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) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren