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.JarFile;
+
+import kcauldron.KCauldonClassTransformer;
+import kcauldron.KCauldronClassTransformer;
import net.minecraft.launchwrapper.ITweaker;
import net.minecraft.launchwrapper.Launch;
import net.minecraft.launchwrapper.LaunchClassLoader;
@ -29,8 +29,8 @@
{
+ // Cauldron start
+ // Register own ClassTransformer for some needs
+ classLoader.registerTransformer("kcauldron.KCauldonClassTransformer");
+ KCauldonClassTransformer.DEV = deobfuscatedEnvironment;
+ classLoader.registerTransformer("kcauldron.KCauldronClassTransformer");
+ KCauldronClassTransformer.DEV = deobfuscatedEnvironment;
+ // Cauldron end
FMLRelaunchLog.fine("Injecting coremod %s {%s} class transformers", name, coreModInstance.getClass().getName());
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 static org.objectweb.asm.Opcodes.*;
public class KCauldonClassTransformer implements IClassTransformer {
public class KCauldronClassTransformer implements IClassTransformer {
public static boolean DEV;
@Override