We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0aacfe4 commit c6d32ffCopy full SHA for c6d32ff
src/proxy.ts
@@ -493,8 +493,10 @@ export class MinecraftProxy {
493
494
// 构造握手包
495
const remoteHostWithFML =
496
- clientSocket.data.FML! > 0
497
- ? `${clientSocket.data.realRemoteHost}\0FML${clientSocket.data.FML}\0`
+ clientSocket.data.FML === 1
+ ? `${clientSocket.data.realRemoteHost}\0FML\0`
498
+ : clientSocket.data.FML === 2
499
+ ? `${clientSocket.data.realRemoteHost}\0FML2\0`
500
: clientSocket.data.realRemoteHost!
501
const handshake = new PacketWriter(0x0)
502
handshake.writeVarInt(clientSocket.data.protocol)
0 commit comments