From dd0e45cffecb2a654837192332a9076e987568dd Mon Sep 17 00:00:00 2001 From: Schmarni Date: Sun, 31 Aug 2025 05:11:32 +0200 Subject: [PATCH] chore(entity handles): disable error if the destroy channel was closed, was triggerd on shutdown Signed-off-by: Schmarni --- src/core/entity_handle.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/core/entity_handle.rs b/src/core/entity_handle.rs index 4af84a0..c6dd4be 100644 --- a/src/core/entity_handle.rs +++ b/src/core/entity_handle.rs @@ -21,9 +21,7 @@ static DESTROY: BevyChannel = 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 for EntityHandle {