diff options
Diffstat (limited to 'src/main/java/cuchaz/enigma/EnigmaProject.java')
| -rw-r--r-- | src/main/java/cuchaz/enigma/EnigmaProject.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/cuchaz/enigma/EnigmaProject.java b/src/main/java/cuchaz/enigma/EnigmaProject.java index 47a3790..2a7ca98 100644 --- a/src/main/java/cuchaz/enigma/EnigmaProject.java +++ b/src/main/java/cuchaz/enigma/EnigmaProject.java | |||
| @@ -158,7 +158,7 @@ public class EnigmaProject { | |||
| 158 | ClassNode node = classCache.getClassNode(entry.getFullName()); | 158 | ClassNode node = classCache.getClassNode(entry.getFullName()); |
| 159 | if (node != null) { | 159 | if (node != null) { |
| 160 | ClassNode translatedNode = new ClassNode(); | 160 | ClassNode translatedNode = new ClassNode(); |
| 161 | node.accept(new TranslationClassVisitor(deobfuscator, Opcodes.ASM5, translatedNode)); | 161 | node.accept(new TranslationClassVisitor(deobfuscator, Opcodes.ASM5, new SourceFixVisitor(Opcodes.ASM5, translatedNode, jarIndex))); |
| 162 | return translatedNode; | 162 | return translatedNode; |
| 163 | } | 163 | } |
| 164 | 164 | ||
| @@ -209,7 +209,6 @@ public class EnigmaProject { | |||
| 209 | 209 | ||
| 210 | //create a common instance outside the loop as mappings shouldn't be changing while this is happening | 210 | //create a common instance outside the loop as mappings shouldn't be changing while this is happening |
| 211 | CompiledSourceTypeLoader typeLoader = new CompiledSourceTypeLoader(this.compiled::get); | 211 | CompiledSourceTypeLoader typeLoader = new CompiledSourceTypeLoader(this.compiled::get); |
| 212 | typeLoader.addVisitor(visitor -> new SourceFixVisitor(Opcodes.ASM5, visitor, jarIndex)); | ||
| 213 | 212 | ||
| 214 | //synchronized to make sure the parallelStream doesn't CME with the cache | 213 | //synchronized to make sure the parallelStream doesn't CME with the cache |
| 215 | ITypeLoader synchronizedTypeLoader = new SynchronizedTypeLoader(typeLoader); | 214 | ITypeLoader synchronizedTypeLoader = new SynchronizedTypeLoader(typeLoader); |