mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 06:16:04 +00:00
Fixes
This commit is contained in:
parent
2cdbdcaa27
commit
ce834aeca5
4 changed files with 4 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
|||
use azalea_core::EntityPos;
|
||||
use crate::Client;
|
||||
use azalea_core::EntityPos;
|
||||
use azalea_protocol::packets::game::serverbound_move_player_packet_pos_rot::ServerboundMovePlayerPacketPosRot;
|
||||
|
||||
impl Client {
|
||||
|
|
|
@ -79,8 +79,6 @@ pub fn decrypt_packet(cipher: &mut Aes128CfbDec, packet: &mut [u8]) {
|
|||
cipher.decrypt_blocks_inout_mut(chunks);
|
||||
}
|
||||
|
||||
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
|
|
@ -105,13 +105,13 @@ declare_state_packets!(
|
|||
0x3c: clientbound_rotate_head_packet::ClientboundRotateHeadPacket,
|
||||
0x3d: clientbound_section_blocks_update_packet::ClientboundSectionBlocksUpdatePacket,
|
||||
0x3f: clientbound_server_data_packet::ClientboundServerDataPacket,
|
||||
0x44: clientbound_set_entity_link_packet::ClientboundSetEntityLinkPacket,
|
||||
0x47: clientbound_set_carried_item_packet::ClientboundSetCarriedItemPacket,
|
||||
0x48: clientbound_set_chunk_cache_center_packet::ClientboundSetChunkCacheCenterPacket,
|
||||
0x49: clientbound_update_view_distance_packet::ClientboundUpdateViewDistancePacket,
|
||||
0x4a: clientbound_set_default_spawn_position_packet::ClientboundSetDefaultSpawnPositionPacket,
|
||||
0x4b: clientbound_set_display_chat_preview_packet::ClientboundSetDisplayChatPreviewPacket,
|
||||
0x4d: clientbound_set_entity_data_packet::ClientboundSetEntityDataPacket,
|
||||
0x4e: clientbound_set_entity_link_packet::ClientboundSetEntityLinkPacket,
|
||||
0x4f: clientbound_entity_velocity_packet::ClientboundEntityVelocityPacket,
|
||||
0x50: clientbound_set_equipment_packet::ClientboundSetEquipmentPacket,
|
||||
0x51: clientbound_set_experience_packet::ClientboundSetExperiencePacket,
|
||||
|
|
|
@ -29,7 +29,8 @@ def generate_packet(burger_packets, mappings: Mappings, target_packet_id, target
|
|||
uses = set()
|
||||
generated_packet_code.append(
|
||||
f'#[derive(Clone, Debug, McBuf, {to_camel_case(state)}Packet)]')
|
||||
uses.add(f'packet_macros::{{{to_camel_case(state)}Packet, McBuf}}')
|
||||
uses.add(f'packet_macros::{to_camel_case(state)}Packet')
|
||||
uses.add(f'packet_buf::McBuf')
|
||||
|
||||
obfuscated_class_name = packet['class'].split('.')[0]
|
||||
class_name = mappings.get_class(
|
||||
|
|
Loading…
Add table
Reference in a new issue