mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2025-01-24 22:01:49 +01:00
getClosestServerProtocol
This commit is contained in:
parent
ce9811da24
commit
b84d0c98c0
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user