diff --git a/src/main/java/net/fabricmc/loom/util/accesswidener/AccessWidenerJarProcessor.java b/src/main/java/net/fabricmc/loom/util/accesswidener/AccessWidenerJarProcessor.java index db09f21..9416ca9 100644 --- a/src/main/java/net/fabricmc/loom/util/accesswidener/AccessWidenerJarProcessor.java +++ b/src/main/java/net/fabricmc/loom/util/accesswidener/AccessWidenerJarProcessor.java @@ -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);