mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 06:16:04 +00:00
* Fix errors on switching dimensions * fix other tests * clippy * fix log feature in test_simulation * fix chunks oops
22 lines
597 B
Rust
Executable file
22 lines
597 B
Rust
Executable file
use azalea_buf::AzBuf;
|
|
use azalea_core::bitset::BitSet;
|
|
use azalea_protocol_macros::ClientboundGamePacket;
|
|
|
|
#[derive(Clone, Debug, AzBuf, ClientboundGamePacket)]
|
|
pub struct ClientboundLightUpdate {
|
|
#[var]
|
|
pub x: i32,
|
|
#[var]
|
|
pub z: i32,
|
|
pub light_data: ClientboundLightUpdatePacketData,
|
|
}
|
|
|
|
#[derive(Clone, Debug, AzBuf, Default)]
|
|
pub struct ClientboundLightUpdatePacketData {
|
|
pub sky_y_mask: BitSet,
|
|
pub block_y_mask: BitSet,
|
|
pub empty_sky_y_mask: BitSet,
|
|
pub empty_block_y_mask: BitSet,
|
|
pub sky_updates: Vec<Vec<u8>>,
|
|
pub block_updates: Vec<Vec<u8>>,
|
|
}
|