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