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 * @return the supported Minecraft: Java Edition version name
*/ */
public static String getJavaVersion() { 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 // Get the url for the latest version of the games manifest
String latestInfoURL = ""; String latestInfoURL = "";
for (Version version : versionManifest.getVersions()) { for (Version version : versionManifest.getVersions()) {
if (version.getId().equals(MinecraftProtocol.getJavaVersion())) { if (version.getId().equals(MinecraftProtocol.getJavaCodec().getMinecraftVersion())) {
latestInfoURL = version.getUrl(); latestInfoURL = version.getUrl();
break; break;
} }