mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2024-11-21 11:55:15 +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>() {
|
||||
override fun channelRead0(ctx: ChannelHandlerContext, msg: ByteBuf) {
|
||||
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() {
|
||||
override fun registerMap() {
|
||||
handler { wrapper: PacketWrapper ->
|
||||
wrapper.cancel()
|
||||
val playerVer = wrapper.passthrough(Type.VAR_INT)
|
||||
val addr = wrapper.passthrough(Type.STRING) // Server Address
|
||||
wrapper.passthrough(Type.UNSIGNED_SHORT)
|
||||
|
Loading…
Reference in New Issue
Block a user