Skip to content

Commit 756e16f

Browse files
committed
chore: Update README.md and suppress warning
1 parent 4aea894 commit 756e16f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ and your JAR file associations are properly configured.
1616

1717
For more information, check out the [RetroMCP Wiki](https://github.com/MCPHackers/RetroMCP-Java/wiki).
1818

19+
[![](https://dcbadge.limes.pink/api/server/https://discord.gg/8Qky5XY)](https://discord.gg/8Qky5XY)
20+
1921
# Features
2022

2123
* Automatically download Minecraft .jar and libraries from version JSONs

src/main/java/org/mcphackers/mcp/tools/mappings/MappingUtil.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import java.util.HashMap;
1111
import java.util.List;
1212
import java.util.Map;
13+
import java.util.Objects;
1314

1415
import net.fabricmc.mappingio.MappingReader;
1516
import net.fabricmc.mappingio.MappingWriter;
@@ -124,7 +125,7 @@ public static void mergeMappings(Path client, Path out) throws IOException {
124125

125126
// Switch the namespaces from official -> named to named -> official
126127
// Rename the namespaces from named -> official to named -> client
127-
MappingNsRenamer nsRenamer = new MappingNsRenamer(MappingWriter.create(out, MappingFormat.TINY_2_FILE), nsRenames);
128+
MappingNsRenamer nsRenamer = new MappingNsRenamer(Objects.requireNonNull(MappingWriter.create(out, MappingFormat.TINY_2_FILE)), nsRenames);
128129
MappingSourceNsSwitch nsSwitch = new MappingSourceNsSwitch(nsRenamer, currentDst);
129130
MappingReader.read(client, MappingFormat.TINY_2_FILE, nsSwitch);
130131
}

0 commit comments

Comments
 (0)