From 9495c4cf3689cfe5bb7f4542f423f40661d42f97 Mon Sep 17 00:00:00 2001 From: StevenRS11 Date: Thu, 21 Feb 2013 16:27:51 -0500 Subject: [PATCH] Fixed world generation bug with mods that add other dims Signed-off-by: StevenRS11 --- StevenDimDoors/mod_pocketDim/RiftGenerator.java | 2 +- StevenDimDoors/mod_pocketDim/dimHelper.java | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/StevenDimDoors/mod_pocketDim/RiftGenerator.java b/StevenDimDoors/mod_pocketDim/RiftGenerator.java index e144e490..035db85d 100644 --- a/StevenDimDoors/mod_pocketDim/RiftGenerator.java +++ b/StevenDimDoors/mod_pocketDim/RiftGenerator.java @@ -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; diff --git a/StevenDimDoors/mod_pocketDim/dimHelper.java b/StevenDimDoors/mod_pocketDim/dimHelper.java index 493d1ab5..4c2ac4a6 100644 --- a/StevenDimDoors/mod_pocketDim/dimHelper.java +++ b/StevenDimDoors/mod_pocketDim/dimHelper.java @@ -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);