Better fix for nether oil generation.
This commit is contained in:
parent
98441500d9
commit
95c0d1eacb
1 changed files with 1 additions and 2 deletions
|
@ -29,7 +29,6 @@ public class OilPopulate implements IWorldGenerator {
|
||||||
@Override
|
@Override
|
||||||
public void generate(Random random, int chunkX, int chunkZ, World world,
|
public void generate(Random random, int chunkX, int chunkZ, World world,
|
||||||
IChunkProvider chunkGenerator, IChunkProvider chunkProvider) {
|
IChunkProvider chunkGenerator, IChunkProvider chunkProvider) {
|
||||||
if (world.getWorldInfo().getDimension() != 0) return; // We're not in the overworld, don't generate oil.
|
|
||||||
|
|
||||||
// shift to world coordinates
|
// shift to world coordinates
|
||||||
chunkX = chunkX << 4;
|
chunkX = chunkX << 4;
|
||||||
|
@ -50,7 +49,7 @@ public class OilPopulate implements IWorldGenerator {
|
||||||
BiomeGenBase biomegenbase = world.getWorldChunkManager().getBiomeGenAt(x, z);
|
BiomeGenBase biomegenbase = world.getWorldChunkManager().getBiomeGenAt(x, z);
|
||||||
|
|
||||||
// Do not generate oil in the End
|
// Do not generate oil in the End
|
||||||
if (biomegenbase.biomeID == BiomeGenBase.sky.biomeID)
|
if (biomegenbase.biomeID == BiomeGenBase.sky.biomeID || biomegenbase.biomeID == BiomeGenBase.hell.biomeID)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (biomegenbase == BiomeGenBase.desert && rand.nextFloat() > 0.97) {
|
if (biomegenbase == BiomeGenBase.desert && rand.nextFloat() > 0.97) {
|
||||||
|
|
Loading…
Reference in a new issue