9bf4f67d9d
Added @Deprecated annotations to the 'backwards compatible' functions spacetoad re-added. Made changes to the install scripts: -Will overwrite the current MCP mappings and use the ones that ship with forge, this should eliminate all the issues of people not being able to install it because they updated there mcp.cfg -Will now move fernflower.jar if it is found, so that MCP will not decompile using it. Should fix the issues of people trying to use forge with fernflower installed. -Will call updatemcp/updatenames so that users get the latest mappings for unmapped items. -Also calls updatemd5s so that the forge API is skipped when spitting out reobfusicated files. Update the readme to be more accurate. Added my name to the credits :P Updated the update_patches/package scripts to account for grabbing the conf folder. Added GnuWin32's grep
27 lines
570 B
Java
27 lines
570 B
Java
import java.io.File;
|
|
import java.lang.reflect.Field;
|
|
|
|
import net.minecraft.client.Minecraft;
|
|
|
|
public class Start
|
|
{
|
|
public static void main(String[] args)
|
|
{
|
|
try
|
|
{
|
|
// set new minecraft data folder to prevent it from using the .minecraft folder
|
|
// this makes it a portable version
|
|
Field f = Minecraft.class.getDeclaredField("minecraftDir");
|
|
Field.setAccessible(new Field[] { f }, true);
|
|
f.set(null, new File("."));
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
e.printStackTrace();
|
|
return;
|
|
}
|
|
|
|
// start minecraft game application
|
|
Minecraft.main(args);
|
|
}
|
|
}
|