aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/c_light_update.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2026-03-18 16:28:46 -1030
committermat <git@matdoes.dev>2026-03-20 04:21:58 -0200
commit25cd1c0b60604655b70d70f8ec33a54853905eea (patch)
tree28911045f6d69b2fffcb8d9c5a92fe32657b5e4b /azalea-protocol/src/packets/game/c_light_update.rs
parentb03d2942e1bef98e13acadde5cbb8856a3f8c74d (diff)
downloadazalea-drasl-25cd1c0b60604655b70d70f8ec33a54853905eea.tar.xz
optimize pathfinder swarms and write perf guide
Diffstat (limited to 'azalea-protocol/src/packets/game/c_light_update.rs')
-rw-r--r--azalea-protocol/src/packets/game/c_light_update.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/azalea-protocol/src/packets/game/c_light_update.rs b/azalea-protocol/src/packets/game/c_light_update.rs
index 83dbda34..1a7027ca 100644
--- a/azalea-protocol/src/packets/game/c_light_update.rs
+++ b/azalea-protocol/src/packets/game/c_light_update.rs
@@ -1,3 +1,5 @@
+use std::sync::Arc;
+
use azalea_buf::AzBuf;
use azalea_core::bitset::BitSet;
use azalea_protocol_macros::ClientboundGamePacket;
@@ -17,6 +19,6 @@ pub struct ClientboundLightUpdatePacketData {
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>>,
+ pub sky_updates: Arc<Box<[Box<[u8]>]>>,
+ pub block_updates: Arc<Box<[Box<[u8]>]>>,
}