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

dev/0.11
modmuss50 2020-04-11 19:21:54 +01:00
parent 702e4ea80b
commit 127e7a4330
1 changed files with 1 additions and 1 deletions

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