Oil should only generate in the overworld.

This commit is contained in:
Techjar 2012-09-03 18:40:51 -03:00
parent 65ac840b0b
commit 98441500d9

View file

@ -29,6 +29,7 @@ public class OilPopulate implements IWorldGenerator {
@Override
public void generate(Random random, int chunkX, int chunkZ, World world,
IChunkProvider chunkGenerator, IChunkProvider chunkProvider) {
if (world.getWorldInfo().getDimension() != 0) return; // We're not in the overworld, don't generate oil.
// shift to world coordinates
chunkX = chunkX << 4;