Skip to content

Commit

Permalink
Fix: #108
Browse files Browse the repository at this point in the history
Fix: #108
  • Loading branch information
Snowiiii committed Oct 3, 2024
1 parent 1726c06 commit ff125c0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pumpkin-protocol/src/server/login/s_plugin_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,13 @@ use crate::{
#[packet(0x02)]
pub struct SLoginPluginResponse {
pub message_id: VarInt,
pub successful: bool,
pub data: Option<BytesMut>,
}

impl ServerPacket for SLoginPluginResponse {
fn read(bytebuf: &mut ByteBuffer) -> Result<Self, DeserializerError> {
Ok(Self {
message_id: bytebuf.get_var_int()?,
successful: bytebuf.get_bool()?,
data: bytebuf.get_option(|v| Ok(v.get_slice()))?,
})
}
Expand Down

0 comments on commit ff125c0

Please sign in to comment.