You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
506 B
Java
25 lines
506 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
|
|
{
|
|
Field f = Minecraft.class.getDeclaredField("minecraftDir");
|
|
Field.setAccessible(new Field[] { f }, true);
|
|
f.set(null, new File("."));
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
e.printStackTrace();
|
|
return;
|
|
}
|
|
|
|
Minecraft.main(args);
|
|
}
|
|
}
|