use new patcher api

This commit is contained in:
oSumAtrIX 2024-06-17 22:37:40 +02:00
parent 51773f30bc
commit 948757d597
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -296,11 +296,11 @@ internal object PatchCommand : Runnable {
// region Patch
patcher.context.packageMetadata.packageName to patcher.apply {
accept(filteredPatches, integrations)
this += filteredPatches to integrations
// Execute patches.
runBlocking {
apply(false).collect { patchResult ->
execute().collect { patchResult ->
patchResult.exception?.let {
StringWriter().use { writer ->
it.printStackTrace(PrintWriter(writer))