Fixed mob spawning issues (maybe) and limbo exit issues.

Signed-off-by: StevenRS11 <stevenrs11@aol.com>
This commit is contained in:
StevenRS11
2013-03-28 21:34:38 -04:00
parent 508e2f3b4d
commit 8ccabfc16e
7 changed files with 81 additions and 25 deletions

View File

@@ -355,14 +355,10 @@ public class dimHelper extends DimensionManager
int y=linkData.destYCoord;
int z=linkData.destZCoord;
if(linkData.destDimID==mod_pocketDim.limboDimID&&entity instanceof EntityPlayerMP)
{
this.teleportToLimbo(world, linkData, EntityPlayerMP.class.cast(entity));
}
int depth= this.getDimDepth(world.provider.dimensionId);
if(this.dimList.containsKey(destinationID))
{
this.generatePocket(linkData);
@@ -371,7 +367,7 @@ public class dimHelper extends DimensionManager
@@ -474,6 +470,11 @@ public class dimHelper extends DimensionManager
this.dimList.put(link.locDimID, locationDimData);
link.isLocPocket=false;
}
if(!dimList.containsKey(link.destDimID))
{
dimHelper.dimList.put(link.destDimID, new DimData(link.destDimID, false, 0, link.locDimID,link.locXCoord,link.locYCoord,link.locZCoord));
}
DimData locationDimData= this.dimList.get(link.locDimID);
@@ -766,8 +767,12 @@ public class dimHelper extends DimensionManager
this.load();
if(!this.dimList.isEmpty())
{
Set allDimIds=dimList.keySet();
Iterator itr =allDimIds.iterator();
while(itr.hasNext())
{
@@ -785,6 +790,10 @@ public class dimHelper extends DimensionManager
{
System.out.println("Warning- could not register dim "+dimData.depth+" . Probably caused by a version update/save data corruption/other mods. ");
}
else
{
e.printStackTrace();
}
}
}
}