Allow for SMP-side mc dir access
This commit is contained in:
parent
79cab45e41
commit
9eef8c43b6
1 changed files with 2 additions and 1 deletions
|
@ -66,6 +66,7 @@ import net.minecraft.world.World;
|
||||||
import net.minecraftforge.common.Configuration;
|
import net.minecraftforge.common.Configuration;
|
||||||
import cpw.mods.fml.common.registry.GameRegistry;
|
import cpw.mods.fml.common.registry.GameRegistry;
|
||||||
import cpw.mods.fml.common.registry.TickRegistry;
|
import cpw.mods.fml.common.registry.TickRegistry;
|
||||||
|
import cpw.mods.fml.relauncher.FMLInjectionData;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -377,7 +378,7 @@ public class CommonProxy
|
||||||
*/
|
*/
|
||||||
public File getMinecraftDir()
|
public File getMinecraftDir()
|
||||||
{
|
{
|
||||||
return null;
|
return (File)FMLInjectionData.data()[6];
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onConfigSync()
|
public void onConfigSync()
|
||||||
|
|
Loading…
Reference in a new issue