mirror of
https://github.com/Pumpkin-MC/Pumpkin.git
synced 2026-08-30 20:14:23 +00:00
Fix: https://github.com/Snowiiii/Pumpkin/issues/108
This commit is contained in:
@@ -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()))?,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user