diff --git a/README.md b/README.md index 5184970..68a3997 100644 --- a/README.md +++ b/README.md @@ -6,16 +6,16 @@ Using it is very simple, just run the jar file, and it will start a user interfa For a full user guide go to the [Usage for Players](#usage-for-players-gui) section or the [Usage for Server Owners](#usage-for-server-owners-config) section. ## Supported Server versions -- Release (1.0.0 - 1.21.1) +- Release (1.0.0 - 1.21.3) - Beta (b1.0 - b1.8.1) - Alpha (a1.0.15 - a1.2.6) - Classic (c0.0.15 - c0.30 including [CPE](https://wiki.vg/Classic_Protocol_Extension)) - April Fools (3D Shareware, 20w14infinite) - Combat Snapshots (Combat Test 8c) -- Bedrock Edition 1.21.30 ([Some features are missing](https://github.com/RaphiMC/ViaBedrock#features)) +- Bedrock Edition 1.21.40 ([Some features are missing](https://github.com/RaphiMC/ViaBedrock#features)) ## Supported Client versions -- Release (1.7.2 - 1.21.1) +- Release (1.7.2 - 1.21.3) - April Fools (3D Shareware) - Bedrock Edition (Requires the [Geyser plugin](https://geysermc.org/download)) - Beta 1.7.3 (Requires the [Beta2Release plugin](https://github.com/ViaVersionAddons/ViaProxyBeta2Release)) diff --git a/build.gradle b/build.gradle index 41bbf34..56af6d5 100644 --- a/build.gradle +++ b/build.gradle @@ -61,16 +61,16 @@ repositories { } dependencies { - include "com.viaversion:viaversion-common:5.0.5" - include "com.viaversion:viabackwards-common:5.0.4" + include "com.viaversion:viaversion-common:5.1.1-SNAPSHOT" + include "com.viaversion:viabackwards-common:5.1.0" include "com.viaversion:viarewind-common:4.0.3" - include "net.raphimc:ViaLegacy:3.0.4-SNAPSHOT" - include "net.raphimc:viaaprilfools-common:3.0.3-SNAPSHOT" - include("net.raphimc:ViaBedrock:0.0.12-SNAPSHOT") { + include "net.raphimc:ViaLegacy:3.0.4" + include "net.raphimc:viaaprilfools-common:3.0.3" + include("net.raphimc:ViaBedrock:0.0.13-SNAPSHOT") { exclude group: "io.netty" exclude group: "io.jsonwebtoken" } - include("net.raphimc:ViaLoader:3.0.4-SNAPSHOT") { + include("net.raphimc:ViaLoader:3.0.4") { exclude group: "org.slf4j", module: "slf4j-api" } @@ -95,7 +95,7 @@ dependencies { exclude group: "com.google.code.gson", module: "gson" } include "net.lenni0451.commons:swing:1.6.1" - include("net.raphimc.netminecraft:all:3.0.0-SNAPSHOT") { + include("net.raphimc.netminecraft:all:3.0.0") { exclude group: "com.google.code.gson", module: "gson" } include("net.raphimc:MinecraftAuth:4.1.1") { diff --git a/src/main/java/net/raphimc/viaproxy/protocoltranslator/providers/ViaProxyVersionProvider.java b/src/main/java/net/raphimc/viaproxy/protocoltranslator/providers/ViaProxyVersionProvider.java index 1600d18..523f98c 100644 --- a/src/main/java/net/raphimc/viaproxy/protocoltranslator/providers/ViaProxyVersionProvider.java +++ b/src/main/java/net/raphimc/viaproxy/protocoltranslator/providers/ViaProxyVersionProvider.java @@ -29,7 +29,7 @@ public class ViaProxyVersionProvider extends BaseVersionProvider { @Override public ProtocolVersion getClientProtocol(UserConnection connection) { final ProtocolVersion clientProtocol = connection.getProtocolInfo().protocolVersion(); - if (clientProtocol.getVersionType() == VersionType.SPECIAL && ProtocolVersion.isRegistered(VersionType.SPECIAL, clientProtocol.getOriginalVersion())) { + if (!clientProtocol.isKnown() && ProtocolVersion.isRegistered(VersionType.SPECIAL, clientProtocol.getOriginalVersion())) { return ProtocolVersion.getProtocol(VersionType.SPECIAL, clientProtocol.getOriginalVersion()); } else { return super.getClientProtocol(connection);