FabricModJsonFactory: Fix compilation error

This commit is contained in:
Juuz
2025-10-29 15:04:33 +02:00
parent a1594dd322
commit f038ad586f

View File

@@ -144,6 +144,7 @@ public final class FabricModJsonFactory {
File file = SourceSetHelper.findFirstFileInResource(FABRIC_MOD_JSON, project, sourceSets);
if (file == null) {
try {
// Try another mod metadata file if fabric.mod.json wasn't found.
final @Nullable ModMetadataFile modMetadata = ModMetadataFiles.fromSourceSets(project, sourceSets);
@@ -152,6 +153,9 @@ public final class FabricModJsonFactory {
}
return null;
} catch (IOException e) {
throw new UncheckedIOException(e);
}
}
try {