From ec24f088b2254aed2c6731cfd373920307aed2bf Mon Sep 17 00:00:00 2001 From: timvisee Date: Tue, 16 Nov 2021 18:09:34 +0100 Subject: [PATCH] Fix lobby error due to invalid packet IDs --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- src/proto/packets.rs | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 2a951fa..7cb481b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -685,7 +685,7 @@ checksum = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a" [[package]] name = "minecraft-protocol" version = "0.1.0" -source = "git+https://github.com/timvisee/rust-minecraft-protocol?rev=4e6a1f9#4e6a1f93807f35671943630c9bdc0d0c5da67eb8" +source = "git+https://github.com/timvisee/rust-minecraft-protocol?rev=a14b40e#a14b40ea9d9a9ed54a6f6546b6d19bc0db1b6c8c" dependencies = [ "byteorder", "minecraft-protocol-derive", @@ -698,7 +698,7 @@ dependencies = [ [[package]] name = "minecraft-protocol-derive" version = "0.0.0" -source = "git+https://github.com/timvisee/rust-minecraft-protocol?rev=4e6a1f9#4e6a1f93807f35671943630c9bdc0d0c5da67eb8" +source = "git+https://github.com/timvisee/rust-minecraft-protocol?rev=a14b40e#a14b40ea9d9a9ed54a6f6546b6d19bc0db1b6c8c" dependencies = [ "proc-macro2", "quote", diff --git a/Cargo.toml b/Cargo.toml index 34531cb..75db550 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -40,7 +40,7 @@ dotenv = "0.15" flate2 = { version = "1.0", default-features = false, features = ["default"] } futures = { version = "0.3", default-features = false } log = "0.4" -minecraft-protocol = { git = "https://github.com/timvisee/rust-minecraft-protocol", rev = "4e6a1f9" } +minecraft-protocol = { git = "https://github.com/timvisee/rust-minecraft-protocol", rev = "a14b40e" } pretty_env_logger = "0.4" rand = "0.8" serde = "1.0" diff --git a/src/proto/packets.rs b/src/proto/packets.rs index bc991fb..fa1aa0b 100644 --- a/src/proto/packets.rs +++ b/src/proto/packets.rs @@ -3,14 +3,14 @@ #![allow(unused)] pub mod handshake { - pub const SERVER_HANDSHAKE: u8 = 0; + pub const SERVER_HANDSHAKE: u8 = 0x00; } pub mod status { - pub const CLIENT_STATUS: u8 = 0; - pub const CLIENT_PING: u8 = 1; - pub const SERVER_STATUS: u8 = 0; - pub const SERVER_PING: u8 = 1; + pub const CLIENT_STATUS: u8 = 0x0; + pub const CLIENT_PING: u8 = 0x01; + pub const SERVER_STATUS: u8 = 0x00; + pub const SERVER_PING: u8 = 0x01; } pub mod login {