diff --git a/crates/bevy_state/src/commands.rs b/crates/bevy_state/src/commands.rs index 5483809cdac46..b392d6b39498b 100644 --- a/crates/bevy_state/src/commands.rs +++ b/crates/bevy_state/src/commands.rs @@ -20,7 +20,9 @@ impl CommandsStatesExt for Commands<'_, '_> { self.add(move |w: &mut World| { let mut next = w.resource_mut::>(); if let NextState::Pending(prev) = &*next { - debug!("overwriting state {:?} with {:?}", prev, state); + if *prev != state { + debug!("overwriting next state {:?} with {:?}", prev, state); + } } next.set(state); });