Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove NuclearCraft ASM #2467

Merged
merged 1 commit into from
May 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions src/main/java/gregtech/asm/GregTechTransformer.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package gregtech.asm;

import gregtech.api.util.Mods;
import gregtech.asm.util.ObfMapping;
import gregtech.asm.util.TargetClassVisitor;
import gregtech.asm.visitors.*;
Expand Down Expand Up @@ -130,21 +129,6 @@ public byte[] transform(String name, String transformedName, byte[] basicClass)
classReader.accept(new TargetClassVisitor(classWriter, CCLVisitor.TARGET_METHOD, CCLVisitor::new), 0);
return classWriter.toByteArray();
}
case NuclearCraftRecipeHelperVisitor.TARGET_CLASS_NAME: {
ClassReader classReader = new ClassReader(basicClass);
ClassWriter classWriter = new ClassWriter(0);

// fix NC recipe compat different depending on overhaul vs normal
if (Mods.NuclearCraftOverhauled.isModLoaded()) {
classReader.accept(new TargetClassVisitor(classWriter,
NuclearCraftRecipeHelperVisitor.TARGET_METHOD_NCO, NuclearCraftRecipeHelperVisitor::new),
0);
} else if (Mods.NuclearCraft.isModLoaded()) {
classReader.accept(new TargetClassVisitor(classWriter,
NuclearCraftRecipeHelperVisitor.TARGET_METHOD_NC, NuclearCraftRecipeHelperVisitor::new), 0);
}
return classWriter.toByteArray();
}
case RenderItemVisitor.TARGET_CLASS_NAME: {
ClassNode classNode = new ClassNode();
ClassReader classReader = new ClassReader(basicClass);
Expand Down

This file was deleted.

Loading