Put Core Mod Error Behind a Proxy.

This commit is contained in:
AlgorithmX2
2014-08-03 12:00:53 -05:00
parent ef40410511
commit f4654b4762
4 changed files with 17 additions and 2 deletions
+7
View File
@@ -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
View File
@@ -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;
+2
View File
@@ -45,4 +45,6 @@ public abstract class CommonHelper
public abstract void updateRenderMode(EntityPlayer player);
public abstract void missingCoreMod();
}
+5
View File
@@ -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." );
}
}