Fixed world generation bug with mods that add other dims
Signed-off-by: StevenRS11 <stevenrs11@aol.com>
This commit is contained in:
parent
c6262ff0a6
commit
9495c4cf36
2 changed files with 5 additions and 2 deletions
|
@ -139,7 +139,7 @@ public class RiftGenerator implements IWorldGenerator
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
if(random.nextInt(100)==0&&world.provider.getDimensionName()!="PocketDim"&&!world.isRemote)
|
if(random.nextInt(120)==0&&world.provider.getDimensionName()!="PocketDim"&&!world.isRemote)
|
||||||
{
|
{
|
||||||
// System.out.println("tryingToGen");
|
// System.out.println("tryingToGen");
|
||||||
int blockID=Block.stoneBrick.blockID;
|
int blockID=Block.stoneBrick.blockID;
|
||||||
|
|
|
@ -683,7 +683,10 @@ public class dimHelper extends DimensionManager
|
||||||
*/
|
*/
|
||||||
public LinkData createPocket(LinkData link , boolean isGoingDown, boolean isRandomRift)
|
public LinkData createPocket(LinkData link , boolean isGoingDown, boolean isRandomRift)
|
||||||
{
|
{
|
||||||
|
if(this.getWorld(link.locDimID)==null)
|
||||||
|
{
|
||||||
|
this.initDimension(link.locDimID);
|
||||||
|
}
|
||||||
|
|
||||||
int dimensionID;
|
int dimensionID;
|
||||||
int depth = this.getDimDepth(link.locDimID);
|
int depth = this.getDimDepth(link.locDimID);
|
||||||
|
|
Loading…
Reference in a new issue