Changed to using the constants.

This commit is contained in:
Harrison Deng 2020-04-26 16:06:26 -05:00
parent ed4996ff9f
commit b492017ef2

View File

@ -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) {