mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2024-11-10 01:02:22 +01:00
fix: broken deprecation message
This commit is contained in:
parent
596ede1b12
commit
62aa295e73
1 changed files with 2 additions and 1 deletions
|
@ -291,7 +291,8 @@ class Patcher(private val options: PatcherOptions) {
|
|||
}
|
||||
|
||||
patch.deprecated?.let { (reason, replacement) ->
|
||||
logger.warn("'$patchName' is deprecated: '$reason'" + if (replacement != null) ". Use '$replacement' instead." else "")
|
||||
logger.warn("'$patchName' is deprecated: $reason")
|
||||
if (replacement != null) logger.warn("Use '${replacement.java.patchName}' instead")
|
||||
}
|
||||
|
||||
// TODO: find a solution for this
|
||||
|
|
Loading…
Reference in a new issue