mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-03-30 05:05:20 -05:00
AccessWidenerUtils: Allow jars with no mod metadata
This commit is contained in:
@@ -57,7 +57,13 @@ public class AccessWidenerUtils {
|
||||
}
|
||||
|
||||
public static AccessWidenerData readAccessWidenerData(Path inputJar) throws IOException {
|
||||
final FabricModJson fabricModJson = FabricModJsonFactory.createFromZip(inputJar);
|
||||
final FabricModJson fabricModJson = FabricModJsonFactory.createFromZipNullable(inputJar);
|
||||
|
||||
// ARCH: Having no mod metadata is just fine.
|
||||
if (fabricModJson == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
final List<String> classTweakers = List.copyOf(fabricModJson.getClassTweakers().keySet());
|
||||
|
||||
if (classTweakers.isEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user