raw response ok, needs further work
This commit is contained in:
parent
4b8717c8b4
commit
e736878960
8
log.txt
8
log.txt
@ -400,3 +400,11 @@
|
||||
2020-07-08 22:25:40 [INFO] - Next state: Status
|
||||
2020-07-08 22:25:40 [INFO] - Ping number: MCLong { value: 4539076 }
|
||||
2020-07-08 22:25:40 [INFO] - Client at 192.168.0.88:55943 closed connection
|
||||
2020-07-09 14:07:50 [INFO] - Network thread started
|
||||
2020-07-09 14:07:50 [IMPORTANT] - Started server on 0.0.0.0:25565
|
||||
2020-07-09 14:07:59 [INFO] - Got a client!
|
||||
2020-07-09 14:07:59 [INFO] - Handshake { protocol_version: MCVarInt { value: 578 }, server_address: MCString { value: "192.168.0.98" }, server_port: MCUnsignedShort { value: 25565 }, next_state: MCVarInt { value: 2 } }
|
||||
2020-07-09 14:07:59 [INFO] - Next state: Login
|
||||
2020-07-09 14:07:59 [INFO] - LoginStart { username: MCString { value: "NomCafeRage" } }
|
||||
2020-07-09 14:08:02 [INFO] - NameUUID { id: "3dc562e61c9047e4b5b02cd10cd895f2", name: "NomCafeRage", legacy: false, demo: false }
|
||||
2020-07-09 14:08:02 [INFO] - Long UUID: "3dc562e6-1c90-47e4-b5b0-2cd10cd895f2"
|
||||
|
@ -145,11 +145,11 @@ fn handle_client(t: TcpStream) -> std::io::Result<()> {
|
||||
for b in packet_id.to_bytes() {
|
||||
write_byte(&mut gc.stream, b)?;
|
||||
}
|
||||
for b in uuidLong.as_bytes() {
|
||||
write_byte(&mut gc.stream, *b)?;
|
||||
for b in MCString::from(uuidLong).to_bytes() {
|
||||
write_byte(&mut gc.stream, b)?;
|
||||
}
|
||||
for b in nameUUIDbundle.name.as_bytes() {
|
||||
write_byte(&mut gc.stream, *b)?;
|
||||
for b in MCString::from(nameUUIDbundle.name).to_bytes() {
|
||||
write_byte(&mut gc.stream, b)?;
|
||||
}
|
||||
|
||||
gc.state = GameState::Play;
|
||||
|
Loading…
x
Reference in New Issue
Block a user