make the new entity_count more precise

This commit is contained in:
Elliott Pierce 2025-06-23 11:06:33 -04:00
parent b543a4ac54
commit 10f11babc8

View File

@ -224,7 +224,7 @@ impl World {
/// This is helpful as a diagnostic, but it can also be used effectively in tests.
#[inline]
pub fn entity_count(&self) -> u32 {
self.entities.len()
self.entities.count_constructed()
}
/// Retrieves this world's [`Archetypes`] collection.