Forgot serverbound::Login::PluginResponse
This commit is contained in:
parent
8a2a144258
commit
b1a8cfdc91
|
@ -239,6 +239,7 @@ pub mod serverbound {
|
||||||
pub enum Login {
|
pub enum Login {
|
||||||
LoginStart(LoginStart),
|
LoginStart(LoginStart),
|
||||||
EncryptionResponse(EncryptionResponse),
|
EncryptionResponse(EncryptionResponse),
|
||||||
|
PluginResponse(PluginResponse),
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Login {
|
impl Login {
|
||||||
|
@ -250,6 +251,9 @@ pub mod serverbound {
|
||||||
} else if packet_id == EncryptionResponse::packet_id() {
|
} else if packet_id == EncryptionResponse::packet_id() {
|
||||||
return Ok(Self::EncryptionResponse(
|
return Ok(Self::EncryptionResponse(
|
||||||
EncryptionResponse::get(&mut data)?))
|
EncryptionResponse::get(&mut data)?))
|
||||||
|
} else if packet_id == PluginResponse::packet_id() {
|
||||||
|
return Ok(Self::PluginResponse(
|
||||||
|
PluginResponse::get(&mut data)?))
|
||||||
} else {
|
} else {
|
||||||
return Err(Box::new(PacketError::InvalidPacketId))
|
return Err(Box::new(PacketError::InvalidPacketId))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue