package CustomOreGen.Util;

import net.minecraft.world.World;

public class SeaLevelHeightScale implements HeightScale {

	@Override
	public int getHeight(World world, int x, int z) {
		int seaLevel = world.provider.getAverageGroundLevel();
		if (world.provider.isHellWorld)
			seaLevel /= 2;
		return seaLevel;
	}

	@Override
	public String getName() {
		return "sealevel";
	}

}

@@ -183,132 +183,34 @@
 %7B%0A%09%09
-int seaLevel = world.provider.getAverageGroundLevel();%0A%09%09if (world.provider.isHellWorld)%0A%09%09%09seaLevel /= 2;%0A%09%09return s
+return world.getS
 eaLevel
+()
 ;%0A%09%7D

use the new sealevel attribute in height scaling