Skip to content

Commit

Permalink
Fix remove_despawned logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Shatur committed Jan 15, 2024
1 parent fc17651 commit 7515312
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/server/clients_info/client_visibility.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,8 @@ impl ClientVisibility {
list,
added,
removed,
} => {
if let Some(just_removed) = list.get_mut(&entity) {
*just_removed = true;
removed.remove(&entity);
added.remove(&entity);
}
}
VisibilityFilter::Whitelist {
| VisibilityFilter::Whitelist {
list,
added,
removed,
Expand Down

0 comments on commit 7515312

Please sign in to comment.