diff --git a/deob/src/main/java/dev/openrs2/deob/transform/StaticScramblingTransformer.kt b/deob/src/main/java/dev/openrs2/deob/transform/StaticScramblingTransformer.kt index 1a9d9794c8..b525586649 100644 --- a/deob/src/main/java/dev/openrs2/deob/transform/StaticScramblingTransformer.kt +++ b/deob/src/main/java/dev/openrs2/deob/transform/StaticScramblingTransformer.kt @@ -37,7 +37,7 @@ class StaticScramblingTransformer : Transformer() { private fun nextClass(): Pair { var clazz = nextStaticClass - if (clazz != null && (clazz.fields.size + clazz.methods.size) < MAX_FIELDS_AND_METHODS) { + if (clazz != null && clazz.fields.size < MAX_FIELDS && clazz.methods.size < MAX_METHODS) { return Pair(clazz, nextClinit!!) } @@ -197,6 +197,7 @@ class StaticScramblingTransformer : Transformer() { companion object { private val logger = InlineLogger() - private const val MAX_FIELDS_AND_METHODS = 500 + private const val MAX_FIELDS = 500 + private const val MAX_METHODS = 50 } }