private Main()
	{
		System.setOut(new Logger(System.out));
		System.setErr(new Logger(System.err));

		System.out.println("Home Directory: " + System.getProperty("user.home"));
		System.out.println("Current Directory: " + System.getProperty("user.dir"));

		Runtime.getRuntime().addShutdownHook(new ShutdownHook());
		System.out.println("Launching...");
		FileHelper.createFile(Vars.HOME_DIR, true);
		FileHelper.createFile(Vars.HOME_DIR + "Documents", true);
		FileHelper.createFile(Vars.HOME_DIR + "mods", true);
		FileHelper.createFile(Vars.HOME_DIR + "natives", true);
		FileHelper.createFile(Vars.HOME_DIR + "saves", true);

		File bin = new File(System.getProperty("user.dir") + "/bin");
		try
		{
			JavaFileHelper.getModsFrom(bin, bin);
			Files.walkFileTree(new File(Vars.HOME_DIR + "mods").toPath(), new FVisitor());
		}
		catch (Exception e1)
		{
			e1.printStackTrace();
		}

		System.out.println("Is Vanilla Gameplay: " + Loader.isVanilla());
		test = new File(Vars.HOME_DIR + "test.txt");
		FileHelper.resetFile(test.getPath());

		try
		{
			if (tryStuff())
			{
				System.exit(0);
			}
		}
		catch (final Throwable e)
		{
			e.printStackTrace();
		}

		Main.mods = Loader.getModList().toArray(new Object[0]);

		Login.login();
	}