mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-22 16:39:43 +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
@@ -41,7 +41,6 @@ import javax.lang.model.type.TypeKind;
|
||||
import javax.lang.model.type.TypeMirror;
|
||||
import javax.lang.model.type.TypeVariable;
|
||||
|
||||
import org.spongepowered.asm.util.Bytecode;
|
||||
import org.spongepowered.asm.util.Constants;
|
||||
import org.spongepowered.asm.util.SignaturePrinter;
|
||||
|
||||
|
||||
@@ -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