We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8657b7f commit 2915e4fCopy full SHA for 2915e4f
src/parser/src/second_pass/game_events.rs
@@ -156,6 +156,7 @@ impl<'a> SecondPassParser<'a> {
156
name: "tick".to_owned(),
157
data: Some(Variant::I32(self.tick)),
158
});
159
+
160
for field in fields {
161
// Fields that refer to players
162
let prefix = match field.name.as_str() {
@@ -175,7 +176,7 @@ impl<'a> SecondPassParser<'a> {
175
176
// Only add iff "userid" is missing in the event...
177
"userid_pawn" => {
178
let field_names: Vec<&String> = fields.iter().map(|x| &x.name).collect();
- if !field_names.contains(&&"userid".to_string()) {
179
+ if !field_names.contains(&&"userid".to_string()) && !field_names.contains(&&"entityid".to_string()) {
180
"user"
181
} else {
182
continue;
0 commit comments