Update version strings to indicate 1.18.1 support

Geyser 1.18 builds already support 1.18.1.
This commit is contained in:
Camotoy 2021-12-10 11:15:12 -05:00
parent 752d984dd7
commit 1885a75d3c
No known key found for this signature in database
GPG key ID: 7EEFB66FE798081F
2 changed files with 2 additions and 2 deletions

View file

@ -91,7 +91,7 @@ public final class MinecraftProtocol {
* @return the supported Minecraft: Java Edition version name
*/
public static String getJavaVersion() {
return DEFAULT_JAVA_CODEC.getMinecraftVersion();
return "1.18 - 1.18.1";
}
/**

View file

@ -71,7 +71,7 @@ public class MinecraftLocale {
// Get the url for the latest version of the games manifest
String latestInfoURL = "";
for (Version version : versionManifest.getVersions()) {
if (version.getId().equals(MinecraftProtocol.getJavaVersion())) {
if (version.getId().equals(MinecraftProtocol.getJavaCodec().getMinecraftVersion())) {
latestInfoURL = version.getUrl();
break;
}