Add UpdateLight_Arrays variant https://wiki.vg/index.php?title=Protocol&oldid=16918#Update_Light
This commit is contained in:
parent
b871f0c07c
commit
b5a0d0cc6c
|
@ -2189,6 +2189,17 @@ state_packets!(
|
||||||
field status: VarInt =,
|
field status: VarInt =,
|
||||||
field successful: bool =,
|
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 {
|
packet UpdateLight_WithTrust {
|
||||||
field chunk_x: VarInt =,
|
field chunk_x: VarInt =,
|
||||||
field chunk_z: VarInt =,
|
field chunk_z: VarInt =,
|
||||||
|
@ -2196,6 +2207,7 @@ state_packets!(
|
||||||
field sky_light_mask: VarInt =,
|
field sky_light_mask: VarInt =,
|
||||||
field block_light_mask: VarInt =,
|
field block_light_mask: VarInt =,
|
||||||
field empty_sky_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> =,
|
field light_arrays: Vec<u8> =,
|
||||||
}
|
}
|
||||||
packet UpdateLight_NoTrust {
|
packet UpdateLight_NoTrust {
|
||||||
|
|
|
@ -95,7 +95,7 @@ protocol_packet_ids!(
|
||||||
0x22 => ChunkData_Biomes3D_Bitmasks
|
0x22 => ChunkData_Biomes3D_Bitmasks
|
||||||
0x23 => Effect
|
0x23 => Effect
|
||||||
0x24 => Particle_f64
|
0x24 => Particle_f64
|
||||||
0x25 => UpdateLight_WithTrust
|
0x25 => UpdateLight_Arrays
|
||||||
0x26 => JoinGame_WorldNames_IsHard
|
0x26 => JoinGame_WorldNames_IsHard
|
||||||
0x27 => Maps
|
0x27 => Maps
|
||||||
0x28 => TradeList_WithRestock
|
0x28 => TradeList_WithRestock
|
||||||
|
|
Loading…
Reference in New Issue