mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-19 16:29:45 +00:00
Allow Debug(export = true) to work even when verbose logging disabled
This commit is contained in:
1 parent
27ea2a9555
commit
a5d9b4e512
2 files changed
+3
-3
No files matched your search
@@ -371,13 +371,14 @@ final class TargetClassContext extends ClassContext implements ITargetClassConte
|
||||
* Process {@link Debug} annotations on the class after application
|
||||
*/
|
||||
void processDebugTasks() {
|
||||
AnnotationNode classDebugAnnotation = Annotations.getVisible(this.classNode, Debug.class);
|
||||
this.forceExport = classDebugAnnotation != null && Boolean.TRUE.equals(Annotations.<Boolean>getValue(classDebugAnnotation, "export"));
|
||||
|
||||
if (!this.env.getOption(Option.DEBUG_VERBOSE)) {
|
||||
return;
|
||||
}
|
||||
|
||||
AnnotationNode classDebugAnnotation = Annotations.getVisible(this.classNode, Debug.class);
|
||||
if (classDebugAnnotation != null) {
|
||||
this.forceExport = Boolean.TRUE.equals(Annotations.<Boolean>getValue(classDebugAnnotation, "export"));
|
||||
if (Boolean.TRUE.equals(Annotations.<Boolean>getValue(classDebugAnnotation, "print"))) {
|
||||
Bytecode.textify(this.classNode, System.err);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user