From 0cfc040e3ec1508324fe378c1947bcc7fd77947d Mon Sep 17 00:00:00 2001 From: Geolykt Date: Tue, 5 Nov 2024 20:44:14 +0100 Subject: [PATCH] Allow `@Desc` to match field instructions --- .../mixin/injection/selectors/dynamic/DynamicSelectorDesc.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/spongepowered/asm/mixin/injection/selectors/dynamic/DynamicSelectorDesc.java b/src/main/java/org/spongepowered/asm/mixin/injection/selectors/dynamic/DynamicSelectorDesc.java index f3df61903..f0b53d444 100644 --- a/src/main/java/org/spongepowered/asm/mixin/injection/selectors/dynamic/DynamicSelectorDesc.java +++ b/src/main/java/org/spongepowered/asm/mixin/injection/selectors/dynamic/DynamicSelectorDesc.java @@ -503,7 +503,7 @@ public MatchResult match(ElementNode node) { 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); }