This commit is contained in:
ice_iix 2021-09-04 17:52:42 -07:00
parent b871f0c07c
commit b5a0d0cc6c
2 changed files with 13 additions and 1 deletions

View File

@ -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<VarInt, i64> =,
field block_light_mask: LenPrefixed<VarInt, i64> =,
field empty_sky_light_mask: LenPrefixed<VarInt, i64> =,
field empty_block_light_mask: LenPrefixed<VarInt, i64> =,
field sky_light_arrays: LenPrefixed<VarInt, LenPrefixed<VarInt, u8>> =,
field block_light_arrays: LenPrefixed<VarInt, LenPrefixed<VarInt, u8>> =,
}
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<u8> =,
}
packet UpdateLight_NoTrust {

View File

@ -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