formatting fixes
This commit is contained in:
parent
1328da587d
commit
ef0f7f13f8
|
@ -151,6 +151,7 @@ This is a packet that contains:
|
||||||
|
|
||||||
- The client's Minecraft version
|
- The client's Minecraft version
|
||||||
- The MD5 checksum of every single mod the client has installed
|
- 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:
|
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
|
```java
|
||||||
modId != "feather" ? checksum : "e3d04e686b28b34b5a98ce078e4f9da8"
|
modId != "feather" ? checksum : "e3d04e686b28b34b5a98ce078e4f9da8"
|
||||||
|
@ -165,7 +166,9 @@ public static enum Platform {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
- The loader's version
|
- 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:
|
In the Fabric version, it does this by finding the Fabric API, and then condensing its' ID and version to a string:
|
||||||
|
|
||||||
```java
|
```java
|
||||||
String platformVersion = mod.getId() + ":" + mod.getVersion().getFriendlyString();
|
String platformVersion = mod.getId() + ":" + mod.getVersion().getFriendlyString();
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue