From 127e7a43304c70ebb7028134c21176fa98d872bc Mon Sep 17 00:00:00 2001 From: modmuss50 Date: Sat, 11 Apr 2020 19:21:54 +0100 Subject: [PATCH] Throw an exception if the target accessWidener could not be found in the fabric.mod.json --- .../loom/util/accesswidener/AccessWidenerJarProcessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);