Forgot serverbound::Login::PluginResponse

This commit is contained in:
Kyler 2023-12-24 20:20:59 -07:00
parent 8a2a144258
commit b1a8cfdc91
1 changed files with 4 additions and 0 deletions

View File

@ -239,6 +239,7 @@ pub mod serverbound {
pub enum Login {
LoginStart(LoginStart),
EncryptionResponse(EncryptionResponse),
PluginResponse(PluginResponse),
}
impl Login {
@ -250,6 +251,9 @@ pub mod serverbound {
} else if packet_id == EncryptionResponse::packet_id() {
return Ok(Self::EncryptionResponse(
EncryptionResponse::get(&mut data)?))
} else if packet_id == PluginResponse::packet_id() {
return Ok(Self::PluginResponse(
PluginResponse::get(&mut data)?))
} else {
return Err(Box::new(PacketError::InvalidPacketId))
}