Merge pull request #57 from kralverde/unload_chunk_packet

Implement the unload chunk packet
This commit is contained in:
Alexander Medvedev
2024-08-23 06:10:08 +01:00
committed by GitHub
2 changed files with 17 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
use pumpkin_macros::packet;
use serde::Serialize;
#[derive(Serialize)]
#[packet(0x21)]
pub struct CUnloadChunk {
z: i32,
x: i32,
}
impl CUnloadChunk {
pub fn new(x: i32, z: i32) -> Self {
Self { z, x }
}
}

View File

@@ -30,6 +30,7 @@ mod c_spawn_player;
mod c_subtitle;
mod c_sync_player_position;
mod c_system_chat_message;
mod c_unload_chunk;
mod c_update_entitiy_pos_rot;
mod c_update_entity_pos;
mod c_update_entity_rot;
@@ -68,6 +69,7 @@ pub use c_spawn_player::*;
pub use c_subtitle::*;
pub use c_sync_player_position::*;
pub use c_system_chat_message::*;
pub use c_unload_chunk::*;
pub use c_update_entitiy_pos_rot::*;
pub use c_update_entity_pos::*;
pub use c_update_entity_rot::*;