Skip to content

Commit

Permalink
forgotten packets
Browse files Browse the repository at this point in the history
  • Loading branch information
ismaileke committed Oct 30, 2024
1 parent d88d007 commit 020b9a9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ impl Client {
self.last_received_sequence_number = seq;
}


let mut sorted_reliable_frame_index: Vec<i32> = self.last_received_packets
.keys()
.cloned()
Expand Down Expand Up @@ -517,6 +516,7 @@ impl Client {
},
PacketType::DisconnectionNotification => {
println!("{}Disconnect Notification Packet Received{}", color_format::COLOR_RED, COLOR_WHITE);
should_stop = true;
}
_ => {}
}
Expand Down
8 changes: 8 additions & 0 deletions src/protocol/game/bedrock_packet_ids.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ pub enum BedrockPacketType {
ServerboundDiagnostics,
CameraAimAssist,
ContainerRegistryCleanup,
MovementEffect,
SetMovementAuthority,
Unknown
}

Expand Down Expand Up @@ -410,6 +412,8 @@ impl BedrockPacketType {
0x13b => BedrockPacketType::ServerboundDiagnostics,
0x13c => BedrockPacketType::CameraAimAssist,
0x13d => BedrockPacketType::ContainerRegistryCleanup,
0x13e => BedrockPacketType::MovementEffect,
0x13f => BedrockPacketType::SetMovementAuthority,
_ => BedrockPacketType::Unknown,
}
}
Expand Down Expand Up @@ -617,6 +621,8 @@ impl BedrockPacketType {
BedrockPacketType::ServerboundDiagnostics => 0x13b,
BedrockPacketType::CameraAimAssist => 0x13c,
BedrockPacketType::ContainerRegistryCleanup => 0x13d,
BedrockPacketType::MovementEffect => 0x13e,
BedrockPacketType::SetMovementAuthority => 0x13f,
_ => 0
}
}
Expand Down Expand Up @@ -824,6 +830,8 @@ impl BedrockPacketType {
0x13b => "Serverbound Diagnostics",
0x13c => "Camera Aim Assist",
0x13d => "Container Registry Cleanup",
0x13e => "Movement Effect",
0x13f => "Set Movement Authority",
_ => "Unknown Packet"
}
}
Expand Down

0 comments on commit 020b9a9

Please sign in to comment.