Skip to content

Commit

Permalink
fix bug selecting class
Browse files Browse the repository at this point in the history
  • Loading branch information
hax0r31337 committed Oct 12, 2022
1 parent 42739a0 commit 84e7d2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/kotlin/me/yuugiri/hutil/HookUtility.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ class HookUtility {
val classObf = classObfuscationRecord(obfuscationMap, klass)
var hasProcessed = false
processorList.forEach {
if (!it.selectClass(classObf.name) && (klass.name != classObf.name && !it.selectClass(klass.name))) return@forEach
if (!it.selectClass(classObf.name) && (klass.name == classObf.name || !it.selectClass(klass.name)))
return@forEach
hasProcessed = it.processClass(obfuscationMap, classObf, klass) || hasProcessed
}
return hasProcessed
Expand Down

0 comments on commit 84e7d2a

Please sign in to comment.