oops fixed translation

This commit is contained in:
creeper123123321 2020-09-21 11:24:39 -03:00
parent f9fc21dc40
commit 77017d4426
2 changed files with 1 additions and 2 deletions

View File

@ -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())
}
}

View File

@ -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)