command improvments
This commit is contained in:
@@ -27,12 +27,13 @@ public class CommandEndDungeonCreation extends CommandBase
|
|||||||
|
|
||||||
if(!customDungeonImporter.customDungeonStatus.containsKey(player.worldObj.provider.dimensionId))
|
if(!customDungeonImporter.customDungeonStatus.containsKey(player.worldObj.provider.dimensionId))
|
||||||
{
|
{
|
||||||
if(var2.length==0)
|
if(var2.length<2)
|
||||||
{
|
{
|
||||||
player.sendChatToPlayer("Must have started dungeon creation, use argument OVERRIDE to export anyway");
|
player.sendChatToPlayer("Must have started dungeon creation, use argument OVERRIDE to export anyway");
|
||||||
return;
|
return;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
else if(!var2[1].contains("OVERRIDE"))
|
else if(!var2[1].contains("OVERRIDE"))
|
||||||
{
|
{
|
||||||
player.sendChatToPlayer("Must have started dungeon creation, use argument OVERRIDE to export anyway");
|
player.sendChatToPlayer("Must have started dungeon creation, use argument OVERRIDE to export anyway");
|
||||||
@@ -56,8 +57,11 @@ public class CommandEndDungeonCreation extends CommandBase
|
|||||||
player.sendChatToPlayer("created dungeon schematic in " +mod_pocketDim.schematicContainer+"/"+var2[0]+".schematic");
|
player.sendChatToPlayer("created dungeon schematic in " +mod_pocketDim.schematicContainer+"/"+var2[0]+".schematic");
|
||||||
mod_pocketDim.customDungeons.add(newDungeon);
|
mod_pocketDim.customDungeons.add(newDungeon);
|
||||||
|
|
||||||
dimHelper.instance.teleportToPocket(player.worldObj, customDungeonImporter.customDungeonStatus.get(player.worldObj.provider.dimensionId), player);
|
if(customDungeonImporter.customDungeonStatus.containsKey(player.worldObj.provider.dimensionId))
|
||||||
|
{
|
||||||
|
dimHelper.instance.teleportToPocket(player.worldObj, customDungeonImporter.customDungeonStatus.get(player.worldObj.provider.dimensionId), player);
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1081,7 +1081,6 @@ public class dimHelper extends DimensionManager
|
|||||||
new File(this.getCurrentSaveRootDirectory()+"/DimensionalDoorsData").renameTo(new File(this.getCurrentSaveRootDirectory()+"/DimensionalDoorsDataOLD"));
|
new File(this.getCurrentSaveRootDirectory()+"/DimensionalDoorsData").renameTo(new File(this.getCurrentSaveRootDirectory()+"/DimensionalDoorsDataOLD"));
|
||||||
|
|
||||||
new File(saveFileName).renameTo( new File(this.getCurrentSaveRootDirectory()+"/DimensionalDoorsData"));
|
new File(saveFileName).renameTo( new File(this.getCurrentSaveRootDirectory()+"/DimensionalDoorsData"));
|
||||||
// System.out.println(String.valueOf(this.dimensionList));
|
|
||||||
}
|
}
|
||||||
catch(Exception e)
|
catch(Exception e)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user