Stop "Binary patch set is missing" error log in dev environment
This commit is contained in:
parent
96fadbcc35
commit
11338d0fde
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue