Fix crash introduced in previous zip related changes.

This commit is contained in:
modmuss50
2022-06-20 20:13:03 +01:00
parent e422dab784
commit 0460f0d618
3 changed files with 13 additions and 4 deletions

View File

@@ -47,7 +47,7 @@ public final class ModUtils {
@Nullable
public static JsonObject getFabricModJson(Path path) {
try {
return ZipUtils.unpackGson(path, "fabric.mod.json", JsonObject.class);
return ZipUtils.unpackGsonNullable(path, "fabric.mod.json", JsonObject.class);
} catch (IOException e) {
throw new UncheckedIOException("Failed to extract fabric.mod.json from " + path, e);
}