mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-04-02 13:37:45 -05:00
Fix crash when a mod dep doesn't have an AW
This commit is contained in:
@@ -80,6 +80,10 @@ public class AccessWidenerUtils {
|
||||
|
||||
JsonObject jsonObject = LoomGradlePlugin.GSON.fromJson(new String(modJsonBytes, StandardCharsets.UTF_8), JsonObject.class);
|
||||
|
||||
if (!jsonObject.has(fieldName)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
String accessWidenerPath;
|
||||
|
||||
if (fieldName.equals("access_widener") && jsonObject.get(fieldName).isJsonArray()) {
|
||||
|
||||
Reference in New Issue
Block a user