Don't validate signatures on servers, they are not signed.

This commit is contained in:
LexManos 2013-07-09 03:27:29 -07:00
parent f45499612d
commit a0211c4fb7

View file

@ -55,6 +55,7 @@ import cpw.mods.fml.common.patcher.ClassPatchManager;
import cpw.mods.fml.relauncher.FMLLaunchHandler;
import cpw.mods.fml.relauncher.FMLRelaunchLog;
import cpw.mods.fml.relauncher.IFMLCallHook;
import cpw.mods.fml.relauncher.Side;
public class FMLSanityChecker implements IFMLCallHook
{
@ -120,7 +121,7 @@ public class FMLSanityChecker implements IFMLCallHook
goodFML = true;
}
boolean goodMC = false;
boolean goodMC = FMLLaunchHandler.side() == Side.SERVER; //Server is not signed, so assume it's good.
try
{
Class cbr = Class.forName("net.minecraft.server.MinecraftServer",false, cl);