fix: broken deprecation message

This commit is contained in:
Sculas 2022-09-08 13:49:03 +02:00
parent de1bdb708c
commit e3e74ac0e9
No known key found for this signature in database
GPG Key ID: 1530BFF96D1EEB89

View File

@ -35,7 +35,8 @@ fun Patcher.addPatchesFiltered() {
}
patch.deprecated?.let { (reason, replacement) ->
logger.warn("$prefix: deprecated: '$reason'" + if (replacement != null) ". Use '$replacement' instead." else "")
logger.warn("$prefix: deprecated: $reason")
if (replacement != null) logger.warn("Either use ${replacement.java.patchName} instead or include it manually")
return@patch
}