Skip to content

Commit 6230bf5

Browse files
committed
Fix Desc target in FIELD At
1 parent 03d2869 commit 6230bf5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/net/fabricmc/tinyremapper/extension/mixin/soft/annotation/injection/AtAnnotationVisitor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public AnnotationVisitor visitAnnotation(String name, String descriptor) {
106106
throw new RuntimeException("Unexpected annotation " + descriptor);
107107
}
108108

109-
av = new DescAnnotationVisitor(targets, data, av, TrMember.MemberType.METHOD);
109+
av = new DescAnnotationVisitor(targets, data, av, this.value.equals("FIELD") ? TrMember.MemberType.FIELD : TrMember.MemberType.METHOD);
110110
}
111111

112112
return av;

0 commit comments

Comments
 (0)