player count fix wip

This commit is contained in:
Robin Appelman 2025-10-08 23:23:34 +02:00
commit 04790ad6f4
9 changed files with 403 additions and 335 deletions

View file

@ -27,7 +27,7 @@ impl MessageMutator for RemoveInvalidPreserveEntity {
UpdateType::Enter => {
self.known_entities.borrow_mut().insert(entity.entity_index);
}
UpdateType::Preserve => {
UpdateType::Delta => {
if !self.known_entities.borrow().contains(&entity.entity_index) {
warn!("preserving missing entity {}", entity.entity_index);
}