mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-05-03 14:14:26 +02:00
fix: broken deprecation message
This commit is contained in:
parent
596ede1b12
commit
62aa295e73
@ -291,7 +291,8 @@ class Patcher(private val options: PatcherOptions) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
patch.deprecated?.let { (reason, replacement) ->
|
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
|
// TODO: find a solution for this
|
||||||
|
Loading…
x
Reference in New Issue
Block a user