for (int zz = 0; zz < 5; ++zz)
{
float f = 0.0F;
float f1 = 0.0F;
float f2 = 0.0F;
<BUG>BiomeGenBase biomegenbase = biomesGridHeights[xx + 22 + zz * 10];
for (int x = -2; x <= 2; ++x)</BUG>
{
int baseIndex = xx + x + 22 + zz * 10;
for (int z = -2; z <= 2; ++z)

for (int zz = 0; zz < 5; ++zz)
{
float f = 0.0F;
float f1 = 0.0F;
float f2 = 0.0F;
float theMinHeight = biomesGridHeights[xx + 22 + zz * 10].minHeight;
for (int x = -2; x <= 2; ++x)
{
int baseIndex = xx + x + 22 + zz * 10;
for (int z = -2; z <= 2; ++z)
