mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-04-02 21:47:42 -05:00
Throw an exception if the target accessWidener could not be found in the fabric.mod.json
This commit is contained in:
@@ -129,7 +129,7 @@ public class AccessWidenerJarProcessor implements JarProcessor {
|
||||
String path = getAccessWidenerPath(modJarPath);
|
||||
|
||||
if (path == null) {
|
||||
return;
|
||||
throw new RuntimeException("Failed to find accessWidener in fabric.mod.json");
|
||||
}
|
||||
|
||||
boolean replaced = ZipUtil.replaceEntry(modJarPath.toFile(), path, bytes);
|
||||
|
||||
Reference in New Issue
Block a user