Fix: https://github.com/Snowiiii/Pumpkin/issues/108
This commit is contained in:
parent
1726c06887
commit
ff125c048a
@ -9,7 +9,6 @@ use crate::{
|
|||||||
#[packet(0x02)]
|
#[packet(0x02)]
|
||||||
pub struct SLoginPluginResponse {
|
pub struct SLoginPluginResponse {
|
||||||
pub message_id: VarInt,
|
pub message_id: VarInt,
|
||||||
pub successful: bool,
|
|
||||||
pub data: Option<BytesMut>,
|
pub data: Option<BytesMut>,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -17,7 +16,6 @@ impl ServerPacket for SLoginPluginResponse {
|
|||||||
fn read(bytebuf: &mut ByteBuffer) -> Result<Self, DeserializerError> {
|
fn read(bytebuf: &mut ByteBuffer) -> Result<Self, DeserializerError> {
|
||||||
Ok(Self {
|
Ok(Self {
|
||||||
message_id: bytebuf.get_var_int()?,
|
message_id: bytebuf.get_var_int()?,
|
||||||
successful: bytebuf.get_bool()?,
|
|
||||||
data: bytebuf.get_option(|v| Ok(v.get_slice()))?,
|
data: bytebuf.get_option(|v| Ok(v.get_slice()))?,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user