From bc52f061fb82fb8b0a76e9395115d41ce731e8ac Mon Sep 17 00:00:00 2001 From: Graham Date: Sat, 9 May 2020 10:53:08 +0100 Subject: [PATCH] Don't union method sets together methods do not override each other. This caused us to incorrectly calculate visibility in some cases in the VisibilityTransformer. Signed-off-by: Graham --- asm/src/main/java/dev/openrs2/asm/classpath/ClassPath.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asm/src/main/java/dev/openrs2/asm/classpath/ClassPath.kt b/asm/src/main/java/dev/openrs2/asm/classpath/ClassPath.kt index 2cb82fa18a..c3b16a085b 100644 --- a/asm/src/main/java/dev/openrs2/asm/classpath/ClassPath.kt +++ b/asm/src/main/java/dev/openrs2/asm/classpath/ClassPath.kt @@ -137,7 +137,7 @@ class ClassPath( for (member in members) { val access = getMemberAccess(clazz, member) - if (access != null && (access and Opcodes.ACC_STATIC != 0 || fields)) { + if (access != null && (access and Opcodes.ACC_STATIC != 0 || member.name == "" || fields)) { continue }