mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2025-02-16 01:41:24 +01:00
oops fixed translation
This commit is contained in:
parent
f9fc21dc40
commit
77017d4426
@ -16,7 +16,7 @@ val logger = Logger.getLogger("CloudHandler")
|
|||||||
class CloudSideForwarder(val userConnection: UserConnection, var other: Channel?) : SimpleChannelInboundHandler<ByteBuf>() {
|
class CloudSideForwarder(val userConnection: UserConnection, var other: Channel?) : SimpleChannelInboundHandler<ByteBuf>() {
|
||||||
override fun channelRead0(ctx: ChannelHandlerContext, msg: ByteBuf) {
|
override fun channelRead0(ctx: ChannelHandlerContext, msg: ByteBuf) {
|
||||||
if (!userConnection.isPendingDisconnect) {
|
if (!userConnection.isPendingDisconnect) {
|
||||||
other!!.write(msg.retain())
|
other?.write(msg.retain())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -42,7 +42,6 @@ object CloudHandlerProtocol : SimpleProtocol() {
|
|||||||
this.registerIncoming(State.HANDSHAKE, 0, 0, object : PacketRemapper() {
|
this.registerIncoming(State.HANDSHAKE, 0, 0, object : PacketRemapper() {
|
||||||
override fun registerMap() {
|
override fun registerMap() {
|
||||||
handler { wrapper: PacketWrapper ->
|
handler { wrapper: PacketWrapper ->
|
||||||
wrapper.cancel()
|
|
||||||
val playerVer = wrapper.passthrough(Type.VAR_INT)
|
val playerVer = wrapper.passthrough(Type.VAR_INT)
|
||||||
val addr = wrapper.passthrough(Type.STRING) // Server Address
|
val addr = wrapper.passthrough(Type.STRING) // Server Address
|
||||||
wrapper.passthrough(Type.UNSIGNED_SHORT)
|
wrapper.passthrough(Type.UNSIGNED_SHORT)
|
||||||
|
Loading…
Reference in New Issue
Block a user