Merge pull request #259 from Samtrion/patch-1

prevents slimeisland generation if worldtype is flat
This commit is contained in:
mDiyo committed 2013-10-21 20:19:31 -07:00
commit 2dbc45837c
1 file changed
+4
@@ -33,6 +33,10 @@ public class SlimeIslandGen extends WorldGenerator implements IWorldGenerator
@Override
public void generate (Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) //IWorldGenerator version
{
if (chunkGenerator instanceof ChunkProviderFlat || world.provider.terrainType == WorldType.FLAT) {
return;
}
if (DimensionBlacklist.isDimInBlacklist(world.provider.dimensionId))
{
if (random.nextInt(PHConstruct.islandRarity) == 0)