command improvments
This commit is contained in:
parent
fa15c13d37
commit
20122f956e
2 changed files with 6 additions and 3 deletions
|
@ -27,12 +27,13 @@ public class CommandEndDungeonCreation extends CommandBase
|
|||
|
||||
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");
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
else if(!var2[1].contains("OVERRIDE"))
|
||||
{
|
||||
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");
|
||||
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(saveFileName).renameTo( new File(this.getCurrentSaveRootDirectory()+"/DimensionalDoorsData"));
|
||||
// System.out.println(String.valueOf(this.dimensionList));
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue