diff --git a/README.md b/README.md index 0f66f0a..b2037cc 100644 --- a/README.md +++ b/README.md @@ -105,7 +105,7 @@ ViaLegacy needs to have custom netty handlers in the pipeline which handle <= 1. To implement the changes you should add something similar to the following lines to your netty pipeline (After the ViaVersion handlers are added): ```java -if (serverTargetVersion.isOlderThanOrEqualTo(VersionEnum.r1_6_4)) { // Only add those handlers if the server version is <= 1.6.4 +if (serverTargetVersion.olderThanOrEqualTo(LegacyProtocolVersion.r1_6_4)) { // Only add those handlers if the server version is <= 1.6.4 user.getProtocolInfo().getPipeline().add(PreNettyBaseProtocol.INSTANCE); // Allow to intercept the handshake packet // You can either add a codec (if your pipeline is built for that) diff --git a/build.gradle b/build.gradle index 36bede4..6e9c6b5 100644 --- a/build.gradle +++ b/build.gradle @@ -23,7 +23,7 @@ repositories { } dependencies { - compileOnly "com.viaversion:viaversion-common:5.0.0-SNAPSHOT" + compileOnly "com.viaversion:viaversion-common:5.0.0" compileOnly "org.yaml:snakeyaml:2.2" compileOnly "com.google.guava:guava:33.2.1-jre" compileOnly "io.netty:netty-handler:4.1.111.Final" diff --git a/gradle.properties b/gradle.properties index edeaf9a..ae7a5bb 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,4 +4,4 @@ org.gradle.configureondemand=true maven_group=net.raphimc maven_name=ViaLegacy -maven_version=3.0.0-SNAPSHOT +maven_version=3.0.0