Changes to dimHelper
replaced dimHelper.dimList.get with dimHelper.instance.getDimData added functions to make working with rifts easier
This commit is contained in:
@@ -79,7 +79,7 @@ public class CommandCreateDungeonRift extends DDCommandBase
|
||||
{
|
||||
//Create a rift to our selected dungeon and notify the player
|
||||
link = dimHelper.instance.createPocket(link, true, true);
|
||||
dimHelper.dimList.get(link.destDimID).dungeonGenerator = result;
|
||||
dimHelper.instance.getDimData(link.destDimID).dungeonGenerator = result;
|
||||
sender.sendChatToPlayer("Created a rift to \"" + getSchematicName(result) + "\" dungeon (Dimension ID = " + link.destDimID + ").");
|
||||
}
|
||||
else
|
||||
|
||||
@@ -56,7 +56,7 @@ public class CommandDeleteAllLinks extends DDCommandBase
|
||||
{
|
||||
if(dimHelper.dimList.containsKey(targetDim))
|
||||
{
|
||||
DimData dim = dimHelper.dimList.get(targetDim);
|
||||
DimData dim = dimHelper.instance.getDimData(targetDim);
|
||||
ArrayList<LinkData> linksInDim = dim.getLinksInDim();
|
||||
|
||||
for (LinkData link : linksInDim)
|
||||
|
||||
@@ -67,7 +67,7 @@ public class CommandDeleteDimensionData extends DDCommandBase
|
||||
{
|
||||
if(link.destDimID==targetDim)
|
||||
{
|
||||
dimHelper.dimList.get(link.locDimID).removeLinkAtCoords(link);
|
||||
dimHelper.instance.getDimData(link.locDimID).removeLinkAtCoords(link);
|
||||
linksRemoved++;
|
||||
}
|
||||
if(dimData.dimID==targetDim)
|
||||
|
||||
@@ -57,7 +57,7 @@ public class CommandDeleteRifts extends DDCommandBase
|
||||
{
|
||||
if(dimHelper.dimList.containsKey(targetDim))
|
||||
{
|
||||
DimData dim = dimHelper.dimList.get(targetDim);
|
||||
DimData dim = dimHelper.instance.getDimData(targetDim);
|
||||
ArrayList<LinkData> linksInDim = dim.getLinksInDim();
|
||||
|
||||
for(LinkData link : linksInDim)
|
||||
|
||||
@@ -50,7 +50,7 @@ public class CommandPrintDimensionData extends DDCommandBase
|
||||
return DDCommandResult.TOO_MANY_ARGUMENTS;
|
||||
}
|
||||
|
||||
dimData = dimHelper.dimList.get(targetDim);
|
||||
dimData = dimHelper.instance.getDimData(targetDim);
|
||||
if (dimData == null)
|
||||
{
|
||||
return DDCommandResult.UNREGISTERED_DIMENSION;
|
||||
|
||||
Reference in New Issue
Block a user