Stop "Binary patch set is missing" error log in dev environment

This commit is contained in:
mezz 2017-07-11 22:38:43 -07:00
parent 96fadbcc35
commit 11338d0fde

View file

@ -33,6 +33,7 @@ import java.util.jar.JarOutputStream;
import java.util.jar.Pack200;
import java.util.regex.Pattern;
import net.minecraft.launchwrapper.Launch;
import net.minecraft.launchwrapper.LaunchClassLoader;
import net.minecraftforge.fml.common.FMLLog;
import net.minecraftforge.fml.relauncher.Side;
@ -171,7 +172,10 @@ public class ClassPatchManager {
InputStream binpatchesCompressed = getClass().getResourceAsStream("/binpatches.pack.lzma");
if (binpatchesCompressed==null)
{
FMLLog.log.error("The binary patch set is missing. Either you are in a development environment, or things are not going to work!");
if (!((Boolean) Launch.blackboard.get("fml.deobfuscatedEnvironment")))
{
FMLLog.log.fatal("The binary patch set is missing, things are not going to work!");
}
return;
}
LzmaInputStream binpatchesDecompressed = new LzmaInputStream(binpatchesCompressed);