Skip to content

Commit

Permalink
remove unrelated change.
Browse files Browse the repository at this point in the history
  • Loading branch information
JackCrumpLeys committed Jul 24, 2024
1 parent ac93aa9 commit 70570a9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/valence_command/src/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,10 @@ fn update_client_command_tree(
let mut new_root = None;

while let Some((parent, node)) = to_visit.pop() {
if already_visited.contains(&(parent.map(|(node_id, _)| node_id), node)) {
if already_visited.contains(&(parent.map(|(_, edge)| edge), node)) {
continue;
}
already_visited.insert((parent.map(|(node_id, _)| node_id), node));

already_visited.insert((parent.map(|(_, edge)| edge), node));
let node_scopes = &old_graph.graph[node].scopes;
if !node_scopes.is_empty() {
let mut has_scope = false;
Expand Down

0 comments on commit 70570a9

Please sign in to comment.