Allow for SMP-side mc dir access

This commit is contained in:
Aidan Brady 2014-01-12 11:46:25 -05:00
parent 79cab45e41
commit 9eef8c43b6

View file

@ -66,6 +66,7 @@ import net.minecraft.world.World;
import net.minecraftforge.common.Configuration;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.TickRegistry;
import cpw.mods.fml.relauncher.FMLInjectionData;
import cpw.mods.fml.relauncher.Side;
/**
@ -377,7 +378,7 @@ public class CommonProxy
*/
public File getMinecraftDir()
{
return null;
return (File)FMLInjectionData.data()[6];
}
public void onConfigSync()