fix: do not list compatible packages if patches do not define them

This commit is contained in:
oSumAtrIX 2023-01-01 18:05:37 +01:00
parent 8284c1048f
commit 31e4a41dd2
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ internal object MainCommand : Runnable {
for (patchBundlePath in args.patchArgs?.patchBundles!!) for (patch in PatchBundle.Jar(patchBundlePath)
.loadPatches()) {
if (patch.patchName in logged) continue
for (compatiblePackage in patch.compatiblePackages!!) {
for (compatiblePackage in patch.compatiblePackages ?: continue) {
val packageEntryStr = buildString {
// Add package if flag is set
if (args.patchArgs?.listingArgs?.withPackages == true) {