1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 06:16:04 +00:00
azalea/azalea-protocol/src/packets/game/c_light_update.rs
mat 833f306e8b
Fix errors on switching dimensions (#204)
* Fix errors on switching dimensions

* fix other tests

* clippy

* fix log feature in test_simulation

* fix chunks oops
2025-02-21 13:43:56 -06:00

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>>,
}