Refactor Userdev and Forgedev launching.

Locating mods on the classpath in dev should solve linked MC sources when debugging.
As well as loading deobfed mods.
Rewrote how arguments are handled in dev, so users can overwrite any defaults we provide.
Added basic Yggdrasil auth support. Passing in --username and --password arguments.
ONLY USE IF NECESSARY. Forge is NOT responsible for your login information.
This commit is contained in:
LexManos committed 2019-03-06 20:59:32 -08:00
1 parent 7bd7b059c4
commit 3003e33074
17 files changed
+440 -335

No files matched your search

@@ -31,14 +31,14 @@ public class MCPVersion {
static {
String vers = MCPVersion.class.getPackage().getSpecificationVersion();
if (vers == null) {
vers = System.getProperty("mc.version");
vers = System.getenv("MC_VERSION");
}
if (vers == null) throw new RuntimeException("Missing MC version, cannot continue");
mcVersion = vers;
vers = MCPVersion.class.getPackage().getImplementationVersion();
if (vers == null) {
vers = System.getProperty("mcp.version");
vers = System.getenv("MCP_VERSION");
}
if (vers == null) throw new RuntimeException("Missing MCP version, cannot continue");
mcpVersion = vers;