From 988c7e483de99295e59d8d586bb768ab4d017635 Mon Sep 17 00:00:00 2001 From: Adrian Siekierka Date: Sat, 20 Apr 2019 23:31:52 +0200 Subject: [PATCH] fix unnecessary pointless LoomFernflowerDecompiler warnings --- .../net/fabricmc/loom/task/LoomFernflowerDecompiler.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/fabricmc/loom/task/LoomFernflowerDecompiler.java b/src/main/java/net/fabricmc/loom/task/LoomFernflowerDecompiler.java index b7d627e4..f4e82616 100644 --- a/src/main/java/net/fabricmc/loom/task/LoomFernflowerDecompiler.java +++ b/src/main/java/net/fabricmc/loom/task/LoomFernflowerDecompiler.java @@ -85,13 +85,15 @@ public class LoomFernflowerDecompiler extends ConsoleDecompiler implements IFabr @Override public void saveClassEntry(String s, String s1, String s2, String s3, String s4) { - System.err.println("Warning: No line mapping provided for " + s1 + " : " + s2 + "!"); + if (s2 != null) { + System.err.println("Warning: No line mapping provided for " + s1 + " : " + s2 + "!"); + } super.saveClassEntry(s, s1, s2, s3, s4); } @Override public void saveClassEntry(String s, String s1, String s2, String s3, String s4, int[] mapping) { - if (mapping != null) { + if (s2 != null && mapping != null) { differingMappings.put(s2, mapping); }