Stopped Cluster/Gateway Generation in The End
Added a condition preventing rift clusters and gateways from generating in The End. It's not really useful to do that right now and could actually cause some annoying side-effects.
This commit is contained in:
parent
a0f9dfff4a
commit
703ec03d29
1 changed files with 4 additions and 2 deletions
|
@ -30,6 +30,7 @@ public class GatewayGenerator implements IWorldGenerator
|
||||||
private static final int NETHER_CHANCE_CORRECTION = 4;
|
private static final int NETHER_CHANCE_CORRECTION = 4;
|
||||||
private static final int OVERWORLD_DIMENSION_ID = 0;
|
private static final int OVERWORLD_DIMENSION_ID = 0;
|
||||||
private static final int NETHER_DIMENSION_ID = -1;
|
private static final int NETHER_DIMENSION_ID = -1;
|
||||||
|
private static final int END_DIMENSION_ID = 1;
|
||||||
|
|
||||||
private final DDProperties properties;
|
private final DDProperties properties;
|
||||||
|
|
||||||
|
@ -43,8 +44,9 @@ public class GatewayGenerator implements IWorldGenerator
|
||||||
{
|
{
|
||||||
//Don't generate rifts or gateways if the rift generation flag is disabled,
|
//Don't generate rifts or gateways if the rift generation flag is disabled,
|
||||||
//the current world is a pocket dimension, or the world is remote.
|
//the current world is a pocket dimension, or the world is remote.
|
||||||
if ((!properties.WorldRiftGenerationEnabled && !(world.provider instanceof LimboProvider)) ||
|
//Also don't generate anything in The End.
|
||||||
world.provider instanceof PocketProvider || world.isRemote)
|
if (world.isRemote || (!properties.WorldRiftGenerationEnabled && !(world.provider instanceof LimboProvider)) ||
|
||||||
|
(world.provider instanceof PocketProvider) || (world.provider.dimensionId == END_DIMENSION_ID))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue