Skip to content

Commit

Permalink
Clear invalid entities after the error
Browse files Browse the repository at this point in the history
  • Loading branch information
Shatur committed Sep 3, 2024
1 parent a1c872c commit 33082c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/event_registry/server_event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@ impl ServerEvent {
make sure that the event references visible entities for the client",
ctx.invalid_entities,
);
ctx.invalid_entities.clear();
Err(bincode::ErrorKind::Custom(message).into())
}
}
Expand Down

0 comments on commit 33082c7

Please sign in to comment.