if (hilliness > 1000) { hilliness = 1000;
if (hilliness > 99) { hilliness = 99;
    public void validateMapGenParameters() {    if (hilliness < 0) {        hilliness = 0;    }    if (hilliness > 1000) {        hilliness = 1000;    }    if (range < 0 ) {        range = 0;    }       if (minWaterSpots < 0) {        minWaterSpots = 0;    }    if (maxWaterSpots < minWaterSpots) {        maxWaterSpots = minWaterSpots;    }    if (minWaterSize < 0) {        minWaterSize = 0;    }    if (maxWaterSize < minWaterSize) {        maxWaterSize = minWaterSize;    }    if (probDeep < 0) {        probDeep = 0;    }    if (probDeep > 100) {        probDeep = 100;    }    if (minForestSpots < 0) {        minForestSpots = 0;    }    if (maxForestSpots < minForestSpots) {        maxForestSpots = minForestSpots;    }    if (minForestSize < 0) {        minForestSize = 0;    }    if (maxForestSize < minForestSize) {        maxForestSize = minForestSize;    }    if (probHeavy < 0) {        probHeavy = 0;    }    if (probHeavy > 100) {        probHeavy = 100;    }    if (minRoughSpots < 0) {        minRoughSpots = 0;    }    if (maxRoughSpots < minRoughSpots) {        maxRoughSpots = minRoughSpots;    }    if (minRoughSize < 0) {        minRoughSize = 0;    }    if (maxRoughSize < minRoughSize) {        maxRoughSize = minRoughSize;    }    if (minSwampSpots < 0) {        minSwampSpots = 0;    }    if (maxSwampSpots < minSwampSpots) {        maxSwampSpots = minSwampSpots;    }    if (minSwampSize < 0) {        minSwampSize = 0;    }    if (maxSwampSize < minSwampSize) {        maxSwampSize = minSwampSize;    }    if (probRoad < 0) {        probRoad = 0;    }    if (probRoad > 100) {        probRoad = 100;    }    if (probInvert < 0) {        probInvert = 0;    }    if (probInvert > 100) {        probInvert = 100;    }    if (probRiver < 0) {        probRiver = 0;    }    if (probRiver > 100) {        probRiver = 100;    }    if (probCrater < 0) {        probCrater = 0;    }    if (probCrater > 100) {        probCrater = 100;    }    if (minRadius < 0) {        minRadius = 0;    }    if (maxRadius < minRadius) {        maxRadius = minRadius;    }    if (minCraters < 0 ) {        minCraters = 0;    }    if (maxCraters < minCraters) {        maxCraters = minCraters;    }    if (algorithmToUse < 0) {        algorithmToUse = 0;    }    if (algorithmToUse > 2) {        algorithmToUse = 2;    }    } /* validateMapGenParameters */