mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-22 13:09:53 +00:00
add in parsing of TwilightForest config to get its dimension ID, addition of blacklist for slime island generation in ages, config option to add to that list.
This commit is contained in:
1 parent
44afbcd654
commit
b5fd27013c
5 files changed
+81
-4
No files matched your search
@@ -10,6 +10,7 @@ import net.minecraft.world.World;
|
||||
import net.minecraft.world.chunk.IChunkProvider;
|
||||
import net.minecraft.world.gen.feature.WorldGenerator;
|
||||
import tconstruct.common.TContent;
|
||||
import tconstruct.compat.dimensions.dimblacklist;
|
||||
import tconstruct.util.PHConstruct;
|
||||
import cpw.mods.fml.common.IWorldGenerator;
|
||||
|
||||
@@ -32,7 +33,7 @@ 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 (world.provider.dimensionId == 0 || world.provider.dimensionId >= 2)
|
||||
if (!dimblacklist.isDimInBlacklist(world.provider.dimensionId))
|
||||
{
|
||||
if (random.nextInt(PHConstruct.islandRarity) == 0)
|
||||
generateIsland(world, random, chunkX * 16, chunkZ * 16);
|
||||
|
||||
Reference in new issue
Block a user