Skip to content

Commit

Permalink
Post map gen events for Atum caves, mineshafts & ravines. Closes #178
Browse files Browse the repository at this point in the history
  • Loading branch information
GirafiStudios committed Apr 21, 2020
1 parent 5093b2a commit 3c7ff10
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import net.minecraft.world.chunk.Chunk;
import net.minecraft.world.chunk.ChunkPrimer;
import net.minecraft.world.gen.*;
import net.minecraftforge.event.terraingen.InitMapGenEvent;
import net.minecraftforge.event.terraingen.InitNoiseGensEvent;
import net.minecraftforge.event.terraingen.PopulateChunkEvent;
import net.minecraftforge.event.terraingen.TerrainGen;
Expand All @@ -56,9 +57,9 @@ public class ChunkGeneratorAtum implements IChunkGenerator {
private final float[] biomeWeights;
private ChunkGeneratorSettings settings;
private double[] depthBuffer = new double[256];
private MapGenBase caveGenerator = new MapGenCaves();
private MapGenAtumMineshaft mineshaftGenerator = new MapGenAtumMineshaft();
private MapGenBase ravineGenerator = new MapGenRavine();
private MapGenBase caveGenerator = TerrainGen.getModdedMapGen(new MapGenCaves(), InitMapGenEvent.EventType.CAVE);
private MapGenAtumMineshaft mineshaftGenerator = (MapGenAtumMineshaft) TerrainGen.getModdedMapGen(new MapGenAtumMineshaft(), InitMapGenEvent.EventType.MINESHAFT);
private MapGenBase ravineGenerator = TerrainGen.getModdedMapGen(new MapGenRavine(), InitMapGenEvent.EventType.RAVINE);
public MapGenPyramid pyramidGenerator = new MapGenPyramid(this);
private MapGenRuin ruinGenerator = new MapGenRuin(this);
private MapGenTomb tombGenerator = new MapGenTomb(this);
Expand Down

0 comments on commit 3c7ff10

Please sign in to comment.