chore(entity handles): disable error if the destroy channel was closed, was triggerd on shutdown

Signed-off-by: Schmarni <marnistromer@gmail.com>
This commit is contained in:
Schmarni
2025-08-31 05:11:32 +02:00
parent a14457ecc1
commit dd0e45cffe

View File

@@ -21,9 +21,7 @@ static DESTROY: BevyChannel<Entity> = BevyChannel::new();
pub struct EntityHandle(pub Entity);
impl Drop for EntityHandle {
fn drop(&mut self) {
if DESTROY.send(self.0).is_none() {
error!("Entity Destroy channel not open");
}
DESTROY.send(self.0);
}
}
impl From<Entity> for EntityHandle {