Skip to content

Commit

Permalink
fix: don't warn on missing entity (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
sparten11740 committed Aug 12, 2023
1 parent e306d1a commit 6ab9da4
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/plugin.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use bevy::asset::load_internal_asset;
use std::marker::PhantomData;

use bevy::log::warn;
use bevy::asset::load_internal_asset;
use bevy::pbr::{NotShadowCaster, NotShadowReceiver};
use bevy::prelude::*;

Expand Down Expand Up @@ -169,10 +168,6 @@ fn remove<T: Percentage + Component>(
) {
removals.iter().for_each(|entity| {
let Ok(&WithBar(bar_entity, _)) = parent_query.get(entity) else {
warn!(
"Tracked component {:?} was removed, but couldn't find bar to despawn.",
entity
);
return;
};

Expand Down

0 comments on commit 6ab9da4

Please sign in to comment.