Commit d02247d5d8112925962e21d81d87437dc8617cb2

Authored by Mumfrey
1 parent ae0c5867

apply transformers to HandlerList template classes

java/common/com/mumfrey/liteloader/core/event/HandlerList.java
@@ -701,7 +701,7 @@ public class HandlerList<T> extends LinkedList<T> implements FastIterableDeque<T @@ -701,7 +701,7 @@ public class HandlerList<T> extends LinkedList<T> implements FastIterableDeque<T
701 try 701 try
702 { 702 {
703 // Read the basic class template 703 // Read the basic class template
704 - byte[] bytes = Launch.classLoader.getClassBytes(this.getTemplate().name); 704 + byte[] bytes = ByteCodeUtilities.applyTransformers(this.getTemplate().name, Launch.classLoader.getClassBytes(this.getTemplate().name));
705 ClassReader classReader = new ClassReader(bytes); 705 ClassReader classReader = new ClassReader(bytes);
706 ClassNode classNode = new ClassNode(); 706 ClassNode classNode = new ClassNode();
707 classReader.accept(classNode, ClassReader.EXPAND_FRAMES); 707 classReader.accept(classNode, ClassReader.EXPAND_FRAMES);