Snowiiii
2024-10-03 19:00:16 +02:00
parent 1726c06887
commit ff125c048a

View File

@@ -9,7 +9,6 @@ use crate::{
#[packet(0x02)]
pub struct SLoginPluginResponse {
pub message_id: VarInt,
pub successful: bool,
pub data: Option<BytesMut>,
}
@@ -17,7 +16,6 @@ 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()))?,
})
}