mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-21 23:12:11 +00:00
Support current fernflower and forgeflower with this one simple trick
This commit is contained in:
1 parent
828f9943f5
commit
dfa5a70fc3
2 files changed
+34
-6
No files matched your search
+2
-2
@@ -98,8 +98,8 @@ public class ExtensionClassExporter implements IExtension {
|
||||
Class<? extends IDecompiler> clazz = (Class<? extends IDecompiler>)Class.forName(className);
|
||||
Constructor<? extends IDecompiler> ctor = clazz.getDeclaredConstructor(File.class);
|
||||
IDecompiler decompiler = ctor.newInstance(outputPath);
|
||||
ExtensionClassExporter.logger.info("Fernflower decompiler was successfully initialised, exported classes will be decompiled{}",
|
||||
as ? " in a separate thread" : "");
|
||||
ExtensionClassExporter.logger.info("Fernflower decompiler was successfully initialised from {}, exported classes will be decompiled{}",
|
||||
decompiler, as ? " in a separate thread" : "");
|
||||
return decompiler;
|
||||
} catch (Throwable th) {
|
||||
ExtensionClassExporter.logger.info("Fernflower could not be loaded, exported classes will not be decompiled. {}: {}",
|
||||
|
||||
Reference in new issue
Block a user