mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-21 06:52:14 +00:00
Also dump target on general errors if enabled, references #45
This commit is contained in:
1 parent
c01d491a15
commit
a4be263684
1 file changed
+4
@@ -369,6 +369,10 @@ public class MixinTransformer extends TreeTransformer {
|
||||
|
||||
return basicClass;
|
||||
} catch (Exception ex) {
|
||||
if (environment.getOption(Option.DUMP_TARGET_ON_FAILURE)) {
|
||||
MixinTransformer.dumpClass(transformedName.replace('.', '/') + ".target", basicClass);
|
||||
}
|
||||
|
||||
throw new MixinTransformerError("An unexpected critical error was encountered", ex);
|
||||
} finally {
|
||||
this.lock.pop();
|
||||
|
||||
Reference in new issue
Block a user