diff --git a/src/main/kotlin/com/viaversion/aas/provider/AspirinVersionProvider.kt b/src/main/kotlin/com/viaversion/aas/provider/AspirinVersionProvider.kt index 841d076..04f91ec 100644 --- a/src/main/kotlin/com/viaversion/aas/provider/AspirinVersionProvider.kt +++ b/src/main/kotlin/com/viaversion/aas/provider/AspirinVersionProvider.kt @@ -5,9 +5,9 @@ import us.myles.ViaVersion.api.data.UserConnection import us.myles.ViaVersion.protocols.base.BaseVersionProvider object AspirinVersionProvider : BaseVersionProvider() { - override fun getServerProtocol(connection: UserConnection): Int { + override fun getClosestServerProtocol(connection: UserConnection): Int { val ver = connection.channel!!.pipeline().get(MinecraftHandler::class.java).data.viaBackServerVer if (ver != null) return ver return super.getServerProtocol(connection) } -} \ No newline at end of file +}