mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-06-19 07:11:02 +00:00
m
This commit is contained in:
@@ -143,11 +143,12 @@ public class CustomBiomeSource extends BiomeSource {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Holder<Biome> getNoiseBiome(int x, int y, int z, Climate.Sampler sampler) {
|
public Holder<Biome> getNoiseBiome(int x, int y, int z, Climate.Sampler sampler) {
|
||||||
IrisBiome ib = engine.getBiome(x << 2, (y - engine.getMinHeight()) << 2, z << 2);
|
int m = (y - engine.getMinHeight()) << 2;
|
||||||
|
IrisBiome ib = engine.getBiome(x << 2, m, z << 2);
|
||||||
if(ib.isCustom()) {
|
if(ib.isCustom()) {
|
||||||
return customBiomes.get(ib.getCustomBiome(rng, x << 2, 0, z << 2).getId());
|
return customBiomes.get(ib.getCustomBiome(rng, x << 2, m, z << 2).getId());
|
||||||
} else {
|
} else {
|
||||||
org.bukkit.block.Biome v = ib.getSkyBiome(rng, x << 2, 0, z << 2);
|
org.bukkit.block.Biome v = ib.getSkyBiome(rng, x << 2, m, z << 2);
|
||||||
return CraftBlock.biomeToBiomeBase(biomeRegistry, v);
|
return CraftBlock.biomeToBiomeBase(biomeRegistry, v);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user