Revert "Revert ""Fix" ores""

This reverts commit 905625d18ec91824c256fadad823ebc35e367313.
This commit is contained in:
Daniel Mills 2020-08-03 23:24:23 -04:00
parent 905625d18e
commit e5d622780e

View File

@ -143,7 +143,7 @@ public class IrisDepositGenerator
int x = rng.i(af, bf);
int z = rng.i(af, bf);
int height = (int) (Math.round(g.getTerrainWaterHeight(x, z))) - 2;
int height = (int) (Math.round(g.getTerrainHeight(x, z))) - 7;
if(height <= 0)
{
@ -160,7 +160,7 @@ public class IrisDepositGenerator
int h = rng.i(i, a);
if(h > maxHeight || h < minHeight)
if(h > maxHeight || h < minHeight || h > height - 7)
{
return;
}
@ -171,7 +171,7 @@ public class IrisDepositGenerator
int ny = j.getBlockY() + h;
int nz = j.getBlockZ() + z;
if(ny > height || nx > 15 || nx < 0 || ny > 255 || ny < 0 || nz < 0 || nz > 15)
if(ny > height - 7 || nx > 15 || nx < 0 || ny > 255 || ny < 0 || nz < 0 || nz > 15)
{
continue;
}