Throw an exception if the target accessWidener could not be found in the fabric.mod.json
This commit is contained in:
parent
702e4ea80b
commit
127e7a4330
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue