mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-02-16 10:30:42 +00:00
fix OOBE in NoiseChunkGenerator3D when using low res palette
This commit is contained in:
@@ -87,6 +87,10 @@ public final class MathUtil {
|
||||
return FastMath.min(FastMath.max(in, -1), 1);
|
||||
}
|
||||
|
||||
public static int clamp(int min, int i, int max) {
|
||||
return FastMath.max(FastMath.min(i, max), min);
|
||||
}
|
||||
|
||||
/**
|
||||
* Compute the value in a normally distributed data set that has probability p.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user