package org.minimallycorrect.modpatcher.api.tweaker;

import net.minecraft.launchwrapper.ITweaker;
import net.minecraft.launchwrapper.Launch;
import net.minecraft.launchwrapper.LaunchClassLoader;

import java.io.*;
import java.util.*;

public class ModPatcherTweaker implements ITweaker {
	@SuppressWarnings("unchecked")
	public static void add() {
		((List<String>) Launch.blackboard.get("TweakClasses")).add(ModPatcherTweaker.class.getName());
	}

	@Override
	public void acceptOptions(List<String> list, File file, File file1, String s) {
		ModPatcherTweaker2.add();
	}

	@Override
	public void injectIntoClassLoader(LaunchClassLoader launchClassLoader) {
	}

	@Override
	public String getLaunchTarget() {
		throw new UnsupportedOperationException("ModPatcherTweaker is not a primary tweaker.");
	}

	@Override
	public String[] getLaunchArguments() {
		return new String[0];
	}
}

@@ -188,16 +188,82 @@
 sLoader;
+%0Aimport org.minimallycorrect.modpatcher.api.LaunchClassLoaderUtil;
 %0A%0Aimport
@@ -601,16 +601,69 @@
 ng s) %7B%0A
+%09%09LaunchClassLoaderUtil.removeRedundantExclusions();%0A
 %09%09ModPat

Fix ClassNotFoundException: org.minimallycorrect.modpatcher.api.tweaker.ModPatcherTweaker2