diff --git a/deob-annotations/src/main/java/dev/openrs2/deob/annotation/OriginalMember.java b/deob-annotations/src/main/java/dev/openrs2/deob/annotation/OriginalMember.java index 8d392d709f..9a3c88cea4 100644 --- a/deob-annotations/src/main/java/dev/openrs2/deob/annotation/OriginalMember.java +++ b/deob-annotations/src/main/java/dev/openrs2/deob/annotation/OriginalMember.java @@ -3,7 +3,7 @@ package dev.openrs2.deob.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Target; -@Target({ ElementType.FIELD, ElementType.METHOD }) +@Target({ ElementType.CONSTRUCTOR, ElementType.FIELD, ElementType.METHOD }) public @interface OriginalMember { String owner(); String name(); diff --git a/deob/src/main/java/dev/openrs2/deob/transform/OriginalNameTransformer.kt b/deob/src/main/java/dev/openrs2/deob/transform/OriginalNameTransformer.kt index 63bc502929..1198b3bd02 100644 --- a/deob/src/main/java/dev/openrs2/deob/transform/OriginalNameTransformer.kt +++ b/deob/src/main/java/dev/openrs2/deob/transform/OriginalNameTransformer.kt @@ -40,7 +40,7 @@ class OriginalNameTransformer : Transformer() { clazz: ClassNode, method: MethodNode ): Boolean { - if (method.name == "" || method.name == "") { + if (method.name == "") { return false }