mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-26 15:03:01 +00:00
Merge pull request #259 from Samtrion/patch-1
prevents slimeisland generation if worldtype is flat
This commit is contained in:
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)
|
||||
|
||||
Reference in new issue
Block a user