mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-19 16:29:45 +00:00
Ensure that all accessor annotations are correctly decorated, fixes #430
This commit is contained in:
1 parent
4f51eb5571
commit
e8dd9239e0
1 file changed
+2
-3
@@ -302,6 +302,7 @@ public class AccessorInfo extends SpecialMethodInfo {
|
||||
this.type = this.initType();
|
||||
this.targetFieldType = this.initTargetFieldType();
|
||||
this.target = this.initTarget();
|
||||
this.annotation.visit("target", this.target.toString());
|
||||
}
|
||||
|
||||
protected AccessorType initType() {
|
||||
@@ -331,9 +332,7 @@ public class AccessorInfo extends SpecialMethodInfo {
|
||||
}
|
||||
|
||||
protected ITargetSelector initTarget() {
|
||||
MemberInfo target = new MemberInfo(this.getTargetName(this.specifiedName), null, this.targetFieldType.getDescriptor());
|
||||
this.annotation.visit("target", target.toString());
|
||||
return target;
|
||||
return new MemberInfo(this.getTargetName(this.specifiedName), null, this.targetFieldType.getDescriptor());
|
||||
}
|
||||
|
||||
protected String getTargetName(String name) {
|
||||
|
||||
Reference in new issue
Block a user