mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-25 21:40:05 +00:00
dwa
This commit is contained in:
1 parent
3964185a81
commit
72c891ce5b
11 files changed
+325
-25
No files matched your search
@@ -204,13 +204,16 @@ public class CustomBiomeSource extends BiomeSource {
|
||||
int blockX = x << 2;
|
||||
int blockZ = z << 2;
|
||||
int blockY = y << 2;
|
||||
int surfaceY = engine.getComplex().getHeightStream().get(blockX, blockZ).intValue();
|
||||
int caveSwitchY = Math.min(-8, engine.getMinHeight() + 40);
|
||||
boolean deepUnderground = blockY <= caveSwitchY;
|
||||
boolean belowSurface = blockY <= surfaceY - 8;
|
||||
int worldMinHeight = engine.getWorld().minHeight();
|
||||
int surfaceInternalY = engine.getComplex().getHeightStream().get(blockX, blockZ).intValue();
|
||||
int surfaceWorldY = surfaceInternalY + worldMinHeight;
|
||||
int caveSwitchWorldY = Math.min(-8, worldMinHeight + 40);
|
||||
boolean deepUnderground = blockY <= caveSwitchWorldY;
|
||||
boolean belowSurface = blockY <= surfaceWorldY - 8;
|
||||
boolean underground = deepUnderground && belowSurface;
|
||||
int internalY = blockY - worldMinHeight;
|
||||
IrisBiome irisBiome = underground
|
||||
? engine.getCaveBiome(blockX, blockY, blockZ)
|
||||
? engine.getCaveBiome(blockX, internalY, blockZ)
|
||||
: engine.getComplex().getTrueBiomeStream().get(blockX, blockZ);
|
||||
if (irisBiome == null && underground) {
|
||||
irisBiome = engine.getComplex().getTrueBiomeStream().get(blockX, blockZ);
|
||||
|
||||
Reference in new issue
Block a user