pov fixes

This commit is contained in:
Robin Appelman 2022-10-23 16:39:23 +02:00
commit 842a01e52d
2 changed files with 3 additions and 5 deletions

View file

@ -62,7 +62,8 @@ pub fn cut(input: &[u8], options: EditOptions) -> Vec<u8> {
let start_state = skip_start(&mut start_handler, &mut packets, start_tick); let start_state = skip_start(&mut start_handler, &mut packets, start_tick);
for packet in start_state.start_packets { for mut packet in start_state.start_packets {
mutators.mutate_packet(&mut packet, &handler.state_handler);
packet packet
.encode(&mut out_stream, &handler.state_handler) .encode(&mut out_stream, &handler.state_handler)
.unwrap(); .unwrap();

View file

@ -34,13 +34,10 @@ impl MessageMutator for AddStvEntity {
} }
let server_class = player_entity.server_class; let server_class = player_entity.server_class;
let mut team_prop = player_entity.get_prop_by_identifier(&TEAM_PROP, state).unwrap().clone();
team_prop.value = SendPropValue::Integer(1);
ent_message.entities.push(PacketEntity { ent_message.entities.push(PacketEntity {
server_class, server_class,
entity_index: self.entity_index, entity_index: self.entity_index,
props: vec![team_prop], props: vec![],
in_pvs: false, in_pvs: false,
update_type: UpdateType::Enter, update_type: UpdateType::Enter,
serial_number: 1234567, serial_number: 1234567,