Throw an exception if the target accessWidener could not be found in the fabric.mod.json
parent
702e4ea80b
commit
127e7a4330
|
@ -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 New Issue