Skip to content

Commit

Permalink
move the cofh oredict asm fix to hodgepodge
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexdoru committed Sep 21, 2024
1 parent a777f1b commit 7982c76
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 177 deletions.
4 changes: 0 additions & 4 deletions src/main/java/gtPlusPlus/core/config/ASMConfiguration.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ public static class Debug {
@Config.DefaultBoolean(false)
public boolean debugMode;

@Config.Comment("Enable/Disable COFH OreDictionaryArbiter Patch (Useful for Development)")
@Config.DefaultBoolean(true)
public boolean enableCofhPatch;

@Config.Comment("Enable/Disable Forge OreDictionary Patch (Useful for Development)")
@Config.DefaultBoolean(false)
public boolean enableOreDictPatch;
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ public class Preloader_Transformer_Handler implements IClassTransformer {

private static final Set<String> IC2_WRENCH_PATCH_CLASS_NAMES = new HashSet<>();
private static final String FORGE_ORE_DICTIONARY = "net.minecraftforge.oredict.OreDictionary";
private static final String COFH_ORE_DICTIONARY_ARBITER = "cofh.core.util.oredict.OreDictionaryArbiter";

static {
IC2_WRENCH_PATCH_CLASS_NAMES.add("ic2.core.block.BlockTileEntity");
Expand Down Expand Up @@ -49,14 +48,6 @@ public byte[] transform(String name, String transformedName, byte[] basicClass)
return classWriter.toByteArray();
}

// Fix the OreDictionary COFH
if (transformedName.equals(COFH_ORE_DICTIONARY_ARBITER)
&& (ASMConfiguration.debug.enableCofhPatch || GTCorePlugin.isDevEnv())) {
PreloaderLogger.INFO("COFH", "Transforming " + transformedName);
return new ClassTransformer_COFH_OreDictionaryArbiter(basicClass).getWriter()
.toByteArray();
}

if (IC2_WRENCH_PATCH_CLASS_NAMES.contains(transformedName)) {
PreloaderLogger.INFO("IC2 getHarvestTool Patch", "Transforming " + transformedName);
return new ClassTransformer_IC2_GetHarvestTool(basicClass, !GTCorePlugin.isDevEnv(), transformedName)
Expand Down

0 comments on commit 7982c76

Please sign in to comment.