Skip processing Forge classes in RuntimeDistCleaner (#10212)

Co-authored-by: Paint_Ninja <[email protected]>
This commit is contained in:
JonathingandPaint_Ninja authored and GitHub committed 2024-12-23 12:19:40 -08:00
1 parent 0e864fbe6e
commit 83a09f7584
4 files changed
+8 -10

No files matched your search

@@ -203,7 +203,14 @@ public class RuntimeDistCleaner implements ILaunchPluginService {
@Override
public EnumSet<Phase> handlesClass(Type classType, boolean isEmpty) {
return isEmpty ? NAY : YAY;
if (isEmpty)
return NAY;
String internalName = classType.getInternalName();
if (internalName.startsWith("net/minecraftforge/"))
return NAY;
return YAY;
}
private static class LambdaGatherer extends MethodVisitor {