Throw an exception if the target accessWidener could not be found in the fabric.mod.json

This commit is contained in:
modmuss50 2020-04-11 19:21:54 +01:00
parent 702e4ea80b
commit 127e7a4330

View file

@ -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);