Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JackCrumpLeys committed Sep 12, 2023
1 parent 006a609 commit 68f4197
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
7 changes: 3 additions & 4 deletions crates/valence_command/src/handler.rs
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
use std::collections::HashMap;
use std::fmt::Debug;
use std::marker::PhantomData;
use std::time::Instant;

=

Check failure on line 4 in crates/valence_command/src/handler.rs

View workflow job for this annotation

GitHub Actions / Unused Dependencies

expected item, found `=`

Check failure on line 4 in crates/valence_command/src/handler.rs

View workflow job for this annotation

GitHub Actions / Clippy

expected item, found `=`

Check failure on line 4 in crates/valence_command/src/handler.rs

View workflow job for this annotation

GitHub Actions / Documentation

expected item, found `=`

Check failure on line 4 in crates/valence_command/src/handler.rs

View workflow job for this annotation

GitHub Actions / Formatting

expected item, found `=`

Check failure on line 4 in crates/valence_command/src/handler.rs

View workflow job for this annotation

GitHub Actions / Tests (ubuntu-latest)

expected item, found `=`
#[cfg(not(feature = "valence"))]
use bevy_app::PreUpdate;
use bevy_app::{App, Plugin, PostStartup};
use bevy_ecs::change_detection::ResMut;
use bevy_ecs::event::{Event, EventReader, EventWriter};
use bevy_ecs::prelude::{Entity, IntoSystemConfigs, Resource};
use petgraph::prelude::NodeIndex;
#[cfg(feature = "valence")]
use valence_server::EventLoopPreUpdate;
#[cfg(not(feature = "valence"))]
use bevy_app::PreUpdate;

use crate::graph::CommandGraphBuilder;
use crate::modifier_value::ModifierValue;
Expand Down
3 changes: 1 addition & 2 deletions crates/valence_command/src/manager.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use std::collections::{HashMap, HashSet};
use std::time::Instant;

use bevy_app::{App, Plugin, PreUpdate};
use bevy_ecs::entity::Entity;
Expand Down Expand Up @@ -251,7 +250,7 @@ fn parse_incoming_commands(
}

for node in to_be_executed {
event_writer.send(CommandProcessedEvent {
event_writer.send(CommandProcessedEvent {
command: args.join(" "),
executor,
modifiers: modifiers.clone(),
Expand Down

0 comments on commit 68f4197

Please sign in to comment.