mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-03-28 04:07:01 -05:00
FabricModJsonFactory: Fix compilation error
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user