Skip to content

Commit 508b645

Browse files
committed
Avoid overwriting the remapper list when adding new ones dynamically
1 parent e2b59c6 commit 508b645

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/main/java/io/github/fabriccompatibiltylayers/modremappingapi/impl/ModRemappingAPIImpl.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ public static void init() {
5656
.stream().collect(Collectors.groupingBy(ModRemapper::getContextId));
5757

5858
v2Keys.addAll(newRemappers.keySet());
59-
v2Remappers.putAll(newRemappers);
59+
60+
newRemappers.forEach((k, v) -> v2Remappers.computeIfAbsent(k, k2 -> new ArrayList<>()).addAll(v));
6061

6162
context.afterRemap();
6263
}

0 commit comments

Comments
 (0)