fix: broken deprecation message

This commit is contained in:
Sculas 2022-09-08 13:42:26 +02:00
parent 596ede1b12
commit 62aa295e73
No known key found for this signature in database
GPG key ID: 1530BFF96D1EEB89

View file

@ -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