9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-26 10:39:07 +00:00

"Fix" ores

This commit is contained in:
Daniel Mills
2020-08-03 23:24:23 -04:00
parent aca279c951
commit b529cc5691

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;
}