Put Core Mod Error Behind a Proxy.
This commit is contained in:
@@ -62,6 +62,7 @@ import appeng.helpers.IMouseWheelItem;
|
||||
import appeng.hooks.TickHandler;
|
||||
import appeng.hooks.TickHandler.PlayerColor;
|
||||
import appeng.server.ServerHelper;
|
||||
import appeng.transformer.MissingCoreMod;
|
||||
import appeng.util.Platform;
|
||||
import cpw.mods.fml.client.registry.ClientRegistry;
|
||||
import cpw.mods.fml.client.registry.RenderingRegistry;
|
||||
@@ -394,4 +395,10 @@ public class ClientHelper extends ServerHelper
|
||||
return Minecraft.getMinecraft().objectMouseOver;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void missingCoreMod()
|
||||
{
|
||||
throw new MissingCoreMod();
|
||||
}
|
||||
|
||||
}
|
||||
+3
-2
@@ -22,7 +22,6 @@ import appeng.integration.IntegrationType;
|
||||
import appeng.server.AECommand;
|
||||
import appeng.services.Profiler;
|
||||
import appeng.services.VersionChecker;
|
||||
import appeng.transformer.MissingCoreMod;
|
||||
import appeng.util.Platform;
|
||||
|
||||
import com.google.common.base.Stopwatch;
|
||||
@@ -109,7 +108,9 @@ public class AppEng
|
||||
void PreInit(FMLPreInitializationEvent event)
|
||||
{
|
||||
if ( !Loader.isModLoaded( "appliedenergistics2-core" ) )
|
||||
throw new MissingCoreMod();
|
||||
{
|
||||
CommonHelper.proxy.missingCoreMod();
|
||||
}
|
||||
|
||||
Stopwatch star = Stopwatch.createStarted();
|
||||
configPath = event.getModConfigurationDirectory().getPath() + File.separator + "AppliedEnergistics2" + File.separator;
|
||||
|
||||
@@ -45,4 +45,6 @@ public abstract class CommonHelper
|
||||
|
||||
public abstract void updateRenderMode(EntityPlayer player);
|
||||
|
||||
public abstract void missingCoreMod();
|
||||
|
||||
}
|
||||
|
||||
@@ -154,4 +154,9 @@ public class ServerHelper extends CommonHelper
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void missingCoreMod()
|
||||
{
|
||||
throw new RuntimeException( "Unable to Load Core Mod, please verify that AE2 is properly install in the mods folder, with a .jar extention." );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user