Fixed srg name of minecraftDir for runtime deobf.

This commit is contained in:
LexManos committed 2013-03-09 11:52:40 -08:00
1 parent 95d0ff18cd
commit 6bf7c9878c
1 file changed
+3 -1
@@ -132,7 +132,9 @@ public class FMLRelauncher
private Class<? super Object> setupNewClientHome(File minecraftHome)
{
Class<? super Object> client = ReflectionHelper.getClass(classLoader, "net.minecraft.client.Minecraft");
ReflectionHelper.setPrivateValue(client, null, minecraftHome, "field_71463_am", "an", "minecraftDir");
ReflectionHelper.setPrivateValue(client, null, minecraftHome,
"field_" + "71463_am" /*Separate that so that MCP's updatenames does not replace it*/,
"an", "minecraftDir");
return client;
}