Changed to using the constants.
This commit is contained in:
parent
ed4996ff9f
commit
b492017ef2
@ -56,8 +56,8 @@ public class WorldHeightShader {
|
||||
|
||||
private int calculateTerrainHeight(int worldX, int worldZ) {
|
||||
double islandValue = islandLocator.getWorldBlockValue(worldX, worldZ) + 1D;
|
||||
islandValue *= 100;
|
||||
return (int) Math.min(63, islandValue);
|
||||
islandValue *= worldHeight/2;
|
||||
return (int) Math.max(Math.min(seaLevel, islandValue), minimumHeight);
|
||||
}
|
||||
|
||||
private double getHeightModifier(int worldX, int worldZ) {
|
||||
|
Loading…
Reference in New Issue
Block a user