toDimension.spawnEntityInWorld(entityPlayerMP);
}
Log.severe("Can't transfer player to the dimension they are already in! " + entityPlayerMP + ", dimension: " + Log.name(toDimension));
return;
}
entityPlayerMP.playerNetServerHandler.sendPacketToPlayer(new Packet9Respawn(entityPlayerMP.dimension, (byte) entityPlayerMP.worldObj.difficultySetting, toDimension.getWorldInfo().getTerrainType(), toDimension.getHeight(), entityPlayerMP.theItemInWorldManager.getGameType()));
fromDimension.playerEntities.remove(entityPlayerMP);
fromDimension.loadedEntityList.remove(entityPlayerMP);
fromDimension.onEntityRemoved(entityPlayerMP);
fromDimension.updateAllPlayersSleepingFlag();
int x = entityPlayerMP.chunkCoordX;