Prevented 'overworld not loaded' crash, temp fix
This commit is contained in:
@@ -18,7 +18,7 @@ public class RiftGenerator implements IWorldGenerator
|
|||||||
public static final int MAX_CLUSTER_GENERATION_CHANCE = 10000;
|
public static final int MAX_CLUSTER_GENERATION_CHANCE = 10000;
|
||||||
private static final int CLUSTER_GROWTH_CHANCE = 80;
|
private static final int CLUSTER_GROWTH_CHANCE = 80;
|
||||||
private static final int MAX_CLUSTER_GROWTH_CHANCE = 100;
|
private static final int MAX_CLUSTER_GROWTH_CHANCE = 100;
|
||||||
private static final int MIN_RIFT_Y = 21;
|
private static final int MIN_RIFT_Y = 4;
|
||||||
private static final int MAX_RIFT_Y = 250;
|
private static final int MAX_RIFT_Y = 250;
|
||||||
private static final int CHUNK_LENGTH = 16;
|
private static final int CHUNK_LENGTH = 16;
|
||||||
private static final int GATEWAY_RADIUS = 4;
|
private static final int GATEWAY_RADIUS = 4;
|
||||||
@@ -41,6 +41,11 @@ public class RiftGenerator implements IWorldGenerator
|
|||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(dimHelper.getWorld(0)==null)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
int x, y, z;
|
int x, y, z;
|
||||||
int attempts;
|
int attempts;
|
||||||
|
|||||||
@@ -906,6 +906,10 @@ public class dimHelper extends DimensionManager
|
|||||||
public LinkData createPocket(LinkData link , boolean isGoingDown, boolean isRandomRift)
|
public LinkData createPocket(LinkData link , boolean isGoingDown, boolean isRandomRift)
|
||||||
{
|
{
|
||||||
DDProperties properties = DDProperties.instance();
|
DDProperties properties = DDProperties.instance();
|
||||||
|
if(dimHelper.getWorld(0)==null)
|
||||||
|
{
|
||||||
|
return link;
|
||||||
|
}
|
||||||
|
|
||||||
if (dimHelper.getWorld(link.locDimID) == null)
|
if (dimHelper.getWorld(link.locDimID) == null)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user