working on crash
This commit is contained in:
parent
4651be614e
commit
b3765b2bad
1 changed files with 3 additions and 15 deletions
|
@ -21,37 +21,25 @@ public class CommandStartDungeonCreation extends CommandBase
|
||||||
return "start_dungeon_creation";
|
return "start_dungeon_creation";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void processCommand(ICommandSender var1, String[] var2)
|
public void processCommand(ICommandSender var1, String[] var2)
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
EntityPlayer player = this.getCommandSenderAsPlayer(var1);
|
EntityPlayer player = this.getCommandSenderAsPlayer(var1);
|
||||||
|
|
||||||
int x = (int) player.posX;
|
int x = (int) player.posX;
|
||||||
int y = (int) player.posY;
|
int y = (int) player.posY;
|
||||||
int z = (int) player.posZ;
|
int z = (int) player.posZ;
|
||||||
|
|
||||||
LinkData link = new LinkData(player.worldObj.provider.dimensionId, 0, x, y+1, z, x, y+1, z, true, 3);
|
LinkData link = new LinkData(player.worldObj.provider.dimensionId, 0, x, y+1, z, x, y+1, z, true, 3);
|
||||||
|
|
||||||
link = dimHelper.instance.createPocket(link,true, false);
|
link = dimHelper.instance.createPocket(link,true, false);
|
||||||
|
|
||||||
dimHelper.instance.teleportToPocket(player.worldObj, link, player);
|
dimHelper.instance.teleportToPocket(player.worldObj, link, player);
|
||||||
|
|
||||||
customDungeonImporter.customDungeonStatus.put(player.worldObj.provider.dimensionId, dimHelper.instance.getLinkDataFromCoords(link.destXCoord, link.destYCoord, link.destZCoord, link.destDimID));
|
customDungeonImporter.customDungeonStatus.put(player.worldObj.provider.dimensionId, dimHelper.instance.getLinkDataFromCoords(link.destXCoord, link.destYCoord, link.destZCoord, link.destDimID));
|
||||||
|
|
||||||
this.getCommandSenderAsPlayer(var1).sendChatToPlayer("DimID = "+ link.destDimID);
|
this.getCommandSenderAsPlayer(var1).sendChatToPlayer("DimID = "+ link.destDimID);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// this.getCommandSenderAsPlayer(var1).sendChatToPlayer(String.valueOf(var2));
|
|
||||||
// this.getCommandSenderAsPlayer(var1).sendChatToPlayer(String.valueOf(var2.length));
|
|
||||||
// this.getCommandSenderAsPlayer(var1).sendChatToPlayer("Removed "+linksRemoved+" rifts.");
|
|
||||||
|
|
||||||
|
|
||||||
// TODO Auto-generated method stub
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue