diff --git a/protocol/src/protocol/packet.rs b/protocol/src/protocol/packet.rs index 2c21b64..11169f3 100644 --- a/protocol/src/protocol/packet.rs +++ b/protocol/src/protocol/packet.rs @@ -2189,6 +2189,17 @@ state_packets!( field status: VarInt =, field successful: bool =, } + packet UpdateLight_Arrays { + field chunk_x: VarInt =, + field chunk_z: VarInt =, + field trust_edges: bool =, + field sky_light_mask: LenPrefixed =, + field block_light_mask: LenPrefixed =, + field empty_sky_light_mask: LenPrefixed =, + field empty_block_light_mask: LenPrefixed =, + field sky_light_arrays: LenPrefixed> =, + field block_light_arrays: LenPrefixed> =, + } packet UpdateLight_WithTrust { field chunk_x: VarInt =, field chunk_z: VarInt =, @@ -2196,6 +2207,7 @@ state_packets!( field sky_light_mask: VarInt =, field block_light_mask: VarInt =, field empty_sky_light_mask: VarInt =, + // TODO: this packet changed <=1.16.4, see https://wiki.vg/index.php?title=Protocol&oldid=16681#Update_Light field light_arrays: Vec =, } packet UpdateLight_NoTrust { diff --git a/protocol/src/protocol/versions/v1_17_1.rs b/protocol/src/protocol/versions/v1_17_1.rs index 0651984..d00266f 100644 --- a/protocol/src/protocol/versions/v1_17_1.rs +++ b/protocol/src/protocol/versions/v1_17_1.rs @@ -95,7 +95,7 @@ protocol_packet_ids!( 0x22 => ChunkData_Biomes3D_Bitmasks 0x23 => Effect 0x24 => Particle_f64 - 0x25 => UpdateLight_WithTrust + 0x25 => UpdateLight_Arrays 0x26 => JoinGame_WorldNames_IsHard 0x27 => Maps 0x28 => TradeList_WithRestock