Skip to content

Commit

Permalink
Remove NuclearCraft ASM (#2467)
Browse files Browse the repository at this point in the history
(cherry picked from commit 43b75c5)
  • Loading branch information
kumquat-ir authored and ALongStringOfNumbers committed May 7, 2024
1 parent 71405be commit 47d8185
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 45 deletions.
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.

0 comments on commit 47d8185

Please sign in to comment.