Fixed world generation bug with mods that add other dims

Signed-off-by: StevenRS11 <stevenrs11@aol.com>
This commit is contained in:
StevenRS11 2013-02-21 16:27:51 -05:00
parent c6262ff0a6
commit 9495c4cf36
2 changed files with 5 additions and 2 deletions

View file

@ -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");
int blockID=Block.stoneBrick.blockID;

View file

@ -683,7 +683,10 @@ public class dimHelper extends DimensionManager
*/
public LinkData createPocket(LinkData link , boolean isGoingDown, boolean isRandomRift)
{
if(this.getWorld(link.locDimID)==null)
{
this.initDimension(link.locDimID);
}
int dimensionID;
int depth = this.getDimDepth(link.locDimID);