1
0
forked from xjboss/KCauldronX
This commit is contained in:
Prototik 2015-05-14 20:13:51 +07:00
parent 8c4713c6d7
commit f9240de62e
2 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@
import java.util.jar.Attributes; import java.util.jar.Attributes;
import java.util.jar.JarFile; import java.util.jar.JarFile;
+ +
+import kcauldron.KCauldonClassTransformer; +import kcauldron.KCauldronClassTransformer;
import net.minecraft.launchwrapper.ITweaker; import net.minecraft.launchwrapper.ITweaker;
import net.minecraft.launchwrapper.Launch; import net.minecraft.launchwrapper.Launch;
import net.minecraft.launchwrapper.LaunchClassLoader; import net.minecraft.launchwrapper.LaunchClassLoader;
@ -29,8 +29,8 @@
{ {
+ // Cauldron start + // Cauldron start
+ // Register own ClassTransformer for some needs + // Register own ClassTransformer for some needs
+ classLoader.registerTransformer("kcauldron.KCauldonClassTransformer"); + classLoader.registerTransformer("kcauldron.KCauldronClassTransformer");
+ KCauldonClassTransformer.DEV = deobfuscatedEnvironment; + KCauldronClassTransformer.DEV = deobfuscatedEnvironment;
+ // Cauldron end + // Cauldron end
FMLRelaunchLog.fine("Injecting coremod %s {%s} class transformers", name, coreModInstance.getClass().getName()); FMLRelaunchLog.fine("Injecting coremod %s {%s} class transformers", name, coreModInstance.getClass().getName());
if (coreModInstance.getASMTransformerClass() != null) for (String transformer : coreModInstance.getASMTransformerClass()) if (coreModInstance.getASMTransformerClass() != null) for (String transformer : coreModInstance.getASMTransformerClass())

View File

@ -9,7 +9,7 @@ import org.objectweb.asm.MethodVisitor;
import net.minecraft.launchwrapper.IClassTransformer; import net.minecraft.launchwrapper.IClassTransformer;
import static org.objectweb.asm.Opcodes.*; import static org.objectweb.asm.Opcodes.*;
public class KCauldonClassTransformer implements IClassTransformer { public class KCauldronClassTransformer implements IClassTransformer {
public static boolean DEV; public static boolean DEV;
@Override @Override