refactor: Simplify mapping classes to their names (#290)

Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
Vologhat 2024-04-07 18:54:37 +03:00 committed by oSumAtrIX
parent f77e99e817
commit d8b4c60321

View file

@ -103,7 +103,7 @@ sealed class PatchBundleLoader private constructor(
patchBundles,
{ patchBundle ->
JarFile(patchBundle).entries().toList().filter { it.name.endsWith(".class") }
.map { it.name.replace('/', '.').replace(".class", "") }
.map { it.name.substringBeforeLast('.').replace('/', '.') }
},
)