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

Fix eb & biome context

This commit is contained in:
DanLT
2021-09-01 13:05:36 -08:00
parent f93c158caa
commit 67711bcb0d
2 changed files with 22 additions and 1 deletions

View File

@@ -678,6 +678,14 @@ public interface Engine extends DataProvider, Fallible, LootProvider, BlockUpdat
return getSurfaceBiome(x, z);
}
default IrisBiome getBiomeOrMantle(int x, int y, int z) {
if (y <= getHeight(x, z) - 2) {
return getCaveOrMantleBiome(x, y, z);
}
return getSurfaceBiome(x, z);
}
default String getObjectPlacementKey(int x, int y, int z) {
PlacedObject o = getObjectPlacement(x, y, z);
@@ -718,4 +726,9 @@ public interface Engine extends DataProvider, Fallible, LootProvider, BlockUpdat
}
int getCacheID();
default IrisBiome getBiomeOrMantle(Location l)
{
return getBiomeOrMantle(l.getBlockX(), l.getBlockY(), l.getBlockZ());
}
}