Split UpdateLight

This commit is contained in:
ice_iix 2020-06-27 17:49:25 -07:00
parent 4b3ac6fb11
commit 0f69de9085
10 changed files with 19 additions and 10 deletions

View File

@ -1965,7 +1965,16 @@ state_packets!(
field status: VarInt =,
field successful: bool =,
}
packet UpdateLight {
packet UpdateLight_WithTrust {
field chunk_x: VarInt =,
field chunk_z: VarInt =,
field trust_edges: bool =,
field sky_light_mask: VarInt =,
field block_light_mask: VarInt =,
field empty_sky_light_mask: VarInt =,
field light_arrays: Vec<u8> =,
}
packet UpdateLight_NoTrust {
field chunk_x: VarInt =,
field chunk_z: VarInt =,
field sky_light_mask: VarInt =,

View File

@ -140,7 +140,7 @@ protocol_packet_ids!(
0x55 => EntityEffect
0x56 => DeclareRecipes
0x57 => TagsWithEntities
0x58 => UpdateLight
0x58 => UpdateLight_NoTrust
}
}
login Login {

View File

@ -140,7 +140,7 @@ protocol_packet_ids!(
0x55 => EntityEffect
0x56 => DeclareRecipes
0x57 => TagsWithEntities
0x58 => UpdateLight
0x58 => UpdateLight_NoTrust
0x59 => WindowOpen_VarInt
0x5a => TradeList_WithoutRestock // TODO: without 1.14 added fields
}

View File

@ -92,7 +92,7 @@ protocol_packet_ids!(
0x21 => ChunkData_HeightMap
0x22 => Effect
0x23 => Particle_Data
0x24 => UpdateLight
0x24 => UpdateLight_NoTrust
0x25 => JoinGame_i32_ViewDistance
0x26 => Maps
0x27 => TradeList_WithoutRestock

View File

@ -92,7 +92,7 @@ protocol_packet_ids!(
0x21 => ChunkData_HeightMap
0x22 => Effect
0x23 => Particle_Data
0x24 => UpdateLight
0x24 => UpdateLight_NoTrust
0x25 => JoinGame_i32_ViewDistance
0x26 => Maps
0x27 => TradeList_WithoutRestock

View File

@ -92,7 +92,7 @@ protocol_packet_ids!(
0x21 => ChunkData_HeightMap
0x22 => Effect
0x23 => Particle_Data
0x24 => UpdateLight
0x24 => UpdateLight_NoTrust
0x25 => JoinGame_i32_ViewDistance
0x26 => Maps
0x27 => TradeList_WithoutRestock

View File

@ -92,7 +92,7 @@ protocol_packet_ids!(
0x21 => ChunkData_HeightMap
0x22 => Effect
0x23 => Particle_Data
0x24 => UpdateLight
0x24 => UpdateLight_NoTrust
0x25 => JoinGame_i32_ViewDistance
0x26 => Maps
0x27 => TradeList_WithRestock

View File

@ -92,7 +92,7 @@ protocol_packet_ids!(
0x21 => ChunkData_HeightMap
0x22 => Effect
0x23 => Particle_Data
0x24 => UpdateLight
0x24 => UpdateLight_NoTrust
0x25 => JoinGame_i32_ViewDistance
0x26 => Maps
0x27 => TradeList_WithRestock

View File

@ -93,7 +93,7 @@ protocol_packet_ids!(
0x22 => ChunkData_Biomes3D
0x23 => Effect
0x24 => Particle_f64
0x25 => UpdateLight
0x25 => UpdateLight_NoTrust
0x26 => JoinGame_HashedSeed_Respawn
0x27 => Maps
0x28 => TradeList_WithRestock

View File

@ -93,7 +93,7 @@ protocol_packet_ids!(
0x21 => ChunkData_Biomes3D_bool
0x22 => Effect
0x23 => Particle_f64
0x24 => UpdateLight // TODO
0x24 => UpdateLight_WithTrust
0x25 => JoinGame_WorldNames
0x26 => Maps
0x27 => TradeList_WithRestock