Skip to content

Commit 32fb2fc

Browse files
committed
Make exception propogation work in saveMap, requires a re-run to apply them like normal.
1 parent efbbce3 commit 32fb2fc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/main/java/de/oceanlabs/mcp/mcinjector/MCInjectorImpl.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,9 @@ public void setParams(String signature, String params)
380380
List<String> splitMap = StringUtil.splitString(curMap, "|", -1);
381381
if (!genParams || signature.contains("<"))
382382
outMappings.put(signature, splitMap.get(0) + "|" + params);
383+
else
384+
outMappings.put(signature, splitMap.get(0) + "|"); //Add this so that our exception fixer fixes things in the end. Will be filtered out if empty
385+
383386

384387
// Add to the input mappings so the generator will power the applier.
385388
curMap = mappings.getProperty(signature);

0 commit comments

Comments
 (0)