mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 20:23:53 -07:00
Fixed fast floor in NoiseGenerator
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user