Allow @Desc to match field instructions

This commit is contained in:
Geolykt authored and LlamaLad7 committed 2024-11-24 16:49:53 +00:00
1 parent 1c695238c3
commit 3b77b68c30
1 file changed
+1 -1
@@ -503,7 +503,7 @@ public class DynamicSelectorDesc implements ITargetSelectorDynamic, ITargetSelec
if (node == null || this.disabled) {
return MatchResult.NONE;
} else if (node.isField()) {
return this.matches(node.getOwner(), node.getName(), node.getDesc(), this.returnType.getInternalName());
return this.matches(node.getOwner(), node.getName(), node.getDesc(), this.returnType.getDescriptor());
} else {
return this.matches(node.getOwner(), node.getName(), node.getDesc(), this.methodDesc);
}