From a3e71f40169b0d6df56eea7ccf34b529a276d7ed Mon Sep 17 00:00:00 2001 From: Christian Date: Tue, 23 Oct 2012 18:10:06 -0400 Subject: [PATCH] Fix up references to minecraftDir in obf code --- fml/common/cpw/mods/fml/relauncher/FMLRelauncher.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fml/common/cpw/mods/fml/relauncher/FMLRelauncher.java b/fml/common/cpw/mods/fml/relauncher/FMLRelauncher.java index c60a26341..9d7863090 100644 --- a/fml/common/cpw/mods/fml/relauncher/FMLRelauncher.java +++ b/fml/common/cpw/mods/fml/relauncher/FMLRelauncher.java @@ -120,7 +120,7 @@ public class FMLRelauncher private Class setupNewClientHome(File minecraftHome) { Class client = ReflectionHelper.getClass(classLoader, "net.minecraft.client.Minecraft"); - ReflectionHelper.setPrivateValue(client, null, minecraftHome, "field_71463_am", "am", "minecraftDir"); + ReflectionHelper.setPrivateValue(client, null, minecraftHome, "field_71463_am", "an", "minecraftDir"); return client; } @@ -188,7 +188,7 @@ public class FMLRelauncher if (str != null) { str = str.replace('/', File.separatorChar); - ReflectionHelper.setPrivateValue(mcMaster, null, new File(str), "minecraftDir", "am", "minecraftDir"); + ReflectionHelper.setPrivateValue(mcMaster, null, new File(str), "minecraftDir", "an", "minecraftDir"); } // We force minecraft to setup it's homedir very early on so we can // inject stuff into it @@ -201,7 +201,7 @@ public class FMLRelauncher { // Hmmm } - File minecraftHome = ReflectionHelper.getPrivateValue(mcMaster, null, "field_71463_am", "am", "minecraftDir"); + File minecraftHome = ReflectionHelper.getPrivateValue(mcMaster, null, "field_71463_am", "an", "minecraftDir"); return minecraftHome; }