diff --git a/build.gradle.kts b/build.gradle.kts index 360c446..ecdbb62 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -60,14 +60,15 @@ dependencies { implementation(kotlin("stdlib-jdk8")) implementation(kotlin("reflect")) - val vvVer = "5.0.2-SNAPSHOT" - val vbVer = "5.0.2-SNAPSHOT" - val vrVer = "4.0.2-SNAPSHOT" + val vvVer = "5.1.2-SNAPSHOT" + val vbVer = "5.1.2-SNAPSHOT" + val vrVer = "4.0.4-SNAPSHOT" + val vafVer = "3.0.5-SNAPSHOT" implementation("com.viaversion:viaversion-common:$vvVer") { isTransitive = false } implementation("com.viaversion:viabackwards-common:$vbVer") { isTransitive = false } implementation("com.viaversion:viarewind-common:$vrVer") { isTransitive = false } - implementation("net.raphimc:ViaAprilFools:3.0.1-SNAPSHOT") - implementation("net.raphimc:ViaLegacy:3.0.2-SNAPSHOT") + implementation("net.raphimc:viaaprilfools-common:$vafVer") { isTransitive = false } + implementation("net.raphimc:ViaLegacy:3.0.6-SNAPSHOT") val nettyVer = "4.1.111.Final" implementation("io.netty:netty-handler-proxy:$nettyVer") diff --git a/src/main/kotlin/com/viaversion/aas/handler/BackEndInit.kt b/src/main/kotlin/com/viaversion/aas/handler/BackEndInit.kt index f30cdbd..bc172e6 100644 --- a/src/main/kotlin/com/viaversion/aas/handler/BackEndInit.kt +++ b/src/main/kotlin/com/viaversion/aas/handler/BackEndInit.kt @@ -8,7 +8,6 @@ import io.netty.channel.Channel import io.netty.channel.ChannelInitializer import io.netty.handler.timeout.ReadTimeoutHandler import net.raphimc.vialegacy.api.LegacyProtocolVersion -import net.raphimc.vialegacy.api.protocol.PreNettyBaseProtocol import net.raphimc.vialegacy.netty.PreNettyLengthCodec import java.net.InetSocketAddress import java.net.URI @@ -22,10 +21,6 @@ class BackEndInit(private val connectionData: ConnectionData, private val proxyU val version = connectionData.backServerVer!! val isLegacy = version.olderThanOrEqualTo(LegacyProtocolVersion.r1_6_4) - if (isLegacy) { - pipeline.add(PreNettyBaseProtocol.INSTANCE) - } - ch.pipeline() .also { addProxyHandler(it, proxyUri, proxyAddress) } .also { if (isLegacy) it.addLast("vl-prenetty", PreNettyLengthCodec(user)) } diff --git a/src/main/resources/web/index.html b/src/main/resources/web/index.html index 3b4cda1..4931674 100644 --- a/src/main/resources/web/index.html +++ b/src/main/resources/web/index.html @@ -122,6 +122,8 @@ frame-src 'self' https://login.microsoftonline.com/ https://login.live.com/" + +