diff --git a/packets.md b/packets.md index 6ffe5d7..500f91a 100644 --- a/packets.md +++ b/packets.md @@ -151,6 +151,7 @@ This is a packet that contains: - The client's Minecraft version - The MD5 checksum of every single mod the client has installed + It's worth noting that the mod with the ID `"feather"` has a fake checksum in both the Fabric and Forge version, regardless of Minecraft version: ```java modId != "feather" ? checksum : "e3d04e686b28b34b5a98ce078e4f9da8" @@ -165,7 +166,9 @@ public static enum Platform { } ``` - The loader's version + In the Fabric version, it does this by finding the Fabric API, and then condensing its' ID and version to a string: + ```java String platformVersion = mod.getId() + ":" + mod.getVersion().getFriendlyString(); ```