Trivial Changes

Made trivial changes to DungeonHelper. Just some spacing and a note to
check something in the future. Need to commit to change branches.
This commit is contained in:
SenseiKiwi
2013-06-16 14:40:26 -04:00
parent b2f5c4ea4e
commit cf2246061c

View File

@@ -507,15 +507,16 @@ public class DungeonHelper
int depthWeight = rand.nextInt(depth)+rand.nextInt(depth)-2; int depthWeight = rand.nextInt(depth)+rand.nextInt(depth)-2;
depth=depth-2; depth = depth - 2;
// DungeonGenerator
boolean flag = true; boolean flag = true;
int count=10; int count = 10;
try try
{ {
if(dimHelper.dimList.get(incoming.destDimID)!=null&&dimHelper.dimList.get(incoming.destDimID).dungeonGenerator!=null) if (dimHelper.dimList.get(incoming.destDimID) != null&&dimHelper.dimList.get(incoming.destDimID).dungeonGenerator!=null)
{ {
mod_pocketDim.loader.init(incoming); mod_pocketDim.loader.init(incoming);
//TODO: Check this!
//What the hell? Isn't this line saying X = X..? ~SenseiKiwi
dimHelper.dimList.get(incoming.destDimID).dungeonGenerator=dimHelper.dimList.get(incoming.destDimID).dungeonGenerator; dimHelper.dimList.get(incoming.destDimID).dungeonGenerator=dimHelper.dimList.get(incoming.destDimID).dungeonGenerator;
return; return;
} }
@@ -644,13 +645,13 @@ public class DungeonHelper
} }
catch (Exception e) catch (Exception e)
{ {
e.printStackTrace();
if (weightedDungeonGenList.size() > 0) if (weightedDungeonGenList.size() > 0)
{ {
dungeon = weightedDungeonGenList.get(rand.nextInt(weightedDungeonGenList.size())); dungeon = weightedDungeonGenList.get(rand.nextInt(weightedDungeonGenList.size()));
} }
else else
{ {
e.printStackTrace();
return; return;
} }
} }