Skip to content

Commit

Permalink
Merge pull request #386 from Zeno410/master
Browse files Browse the repository at this point in the history
Further changes for dimensions
  • Loading branch information
whichonespink44 committed Jan 6, 2016
2 parents 324a80e + ab8b809 commit d744df1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/main/java/rtg/event/EventManagerRTG.java
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ public void onBiomeGenInit(WorldTypeEvent.InitBiomeGens event) {
try {
event.newBiomeGens = new RiverRemover().riverLess(event.originalBiomeGens);
} catch (ClassCastException ex) {
//throw ex;
// failed attempt because the GenLayers don't end with GenLayerRiverMix
}
}
Expand Down
7 changes: 6 additions & 1 deletion src/main/java/rtg/world/WorldTypeRTG.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import net.minecraft.world.biome.WorldChunkManager;
import net.minecraft.world.chunk.IChunkProvider;

import net.minecraft.world.gen.ChunkProviderGenerate;
import net.minecraftforge.common.DimensionManager;

public class WorldTypeRTG extends WorldType
Expand All @@ -34,7 +35,11 @@ public WorldChunkManager getChunkManager(World world)
@Override
public IChunkProvider getChunkGenerator(World world, String generatorOptions)
{
return new ChunkProviderRTG(world, world.getSeed());
if (world.provider.dimensionId == 0) {
return new ChunkProviderRTG(world, world.getSeed());
} else {
return new ChunkProviderGenerate(world, world.getSeed(), world.getWorldInfo().isMapFeaturesEnabled());
}
}

@Override
Expand Down

0 comments on commit d744df1

Please sign in to comment.