diff --git a/deob-bytecode/src/main/kotlin/org/openrs2/deob/bytecode/transform/FinalMethodTransformer.kt b/deob-bytecode/src/main/kotlin/org/openrs2/deob/bytecode/transform/FinalMethodTransformer.kt index 1d5fce24..4bf46df2 100644 --- a/deob-bytecode/src/main/kotlin/org/openrs2/deob/bytecode/transform/FinalMethodTransformer.kt +++ b/deob-bytecode/src/main/kotlin/org/openrs2/deob/bytecode/transform/FinalMethodTransformer.kt @@ -22,7 +22,9 @@ public class FinalMethodTransformer : Transformer() { } private fun isMethodFinal(classPath: ClassPath, clazz: ClassNode, method: MethodNode): Boolean { - if (method.name == "") { + if ((clazz.access and Opcodes.ACC_FINAL) != 0) { + return false + } else if (method.name == "") { return false } else if ((method.access and (Opcodes.ACC_ABSTRACT or Opcodes.ACC_PRIVATE or Opcodes.ACC_STATIC)) != 0) { return false