diff --git a/protocol/src/protocol/packet.rs b/protocol/src/protocol/packet.rs index 77c8e7b..904c2ba 100644 --- a/protocol/src/protocol/packet.rs +++ b/protocol/src/protocol/packet.rs @@ -2019,6 +2019,10 @@ state_packets!( field object_name: String =, field value: Option = when(|p: &UpdateScore_i32| p.action != 1), } + /// UpdateSimulationDistance is used to set how far the client will process entities. + packet UpdateSimulationDistance { + field simulationDistance: VarInt =, + } /// SpawnPosition is sent to change the player's current spawn point. Currently /// only used by the client for the compass. packet SpawnPosition_Angle { diff --git a/protocol/src/protocol/versions/v1_18_1.rs b/protocol/src/protocol/versions/v1_18_1.rs index 837b596..3b97920 100644 --- a/protocol/src/protocol/versions/v1_18_1.rs +++ b/protocol/src/protocol/versions/v1_18_1.rs @@ -145,22 +145,23 @@ protocol_packet_ids!( 0x54 => SetPassengers 0x55 => Teams_VarInt 0x56 => UpdateScore - 0x57 => TitleSubtitle - 0x58 => TimeUpdate - 0x59 => Title - 0x5a => TitleTimes - 0x5b => EntitySoundEffect - 0x5c => SoundEffect - 0x5d => StopSound - 0x5e => PlayerListHeaderFooter - 0x5f => NBTQueryResponse - 0x60 => CollectItem - 0x61 => EntityTeleport_f64 - 0x62 => Advancements - 0x63 => EntityProperties_VarIntVarInt - 0x64 => EntityEffect - 0x65 => DeclareRecipes - 0x66 => Tags_Nested + 0x57 => UpdateSimulationDistance + 0x58 => TitleSubtitle + 0x59 => TimeUpdate + 0x5a => Title + 0x5b => TitleTimes + 0x5c => EntitySoundEffect + 0x5d => SoundEffect + 0x5e => StopSound + 0x5f => PlayerListHeaderFooter + 0x60 => NBTQueryResponse + 0x61 => CollectItem + 0x62 => EntityTeleport_f64 + 0x63 => Advancements + 0x64 => EntityProperties_VarIntVarInt + 0x65 => EntityEffect + 0x66 => DeclareRecipes + 0x67 => Tags_Nested } } login Login {