aboutsummaryrefslogtreecommitdiff
path: root/azalea-physics/src
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2023-02-25 17:32:15 -0600
committerGitHub <noreply@github.com>2023-02-25 17:32:15 -0600
commitc1588ef66e844c067112ea880a54b4de9ec5a062 (patch)
tree76e4f73a5f5392e1bef1f0560ed2f2c56b0d50fb /azalea-physics/src
parentf5a8a59467a0aac3ae2f728961559217f1e1242d (diff)
downloadazalea-drasl-c1588ef66e844c067112ea880a54b4de9ec5a062.tar.xz
Fix system order ambiguities (#74)
* start fixing stuff where systems run in the wrong order * fix ordering ambiguity * add debugging guide * some fixes * fix panic for swarms * fix some warnings
Diffstat (limited to 'azalea-physics/src')
-rw-r--r--azalea-physics/src/lib.rs13
1 files changed, 5 insertions, 8 deletions
diff --git a/azalea-physics/src/lib.rs b/azalea-physics/src/lib.rs
index 23b05fef..0a8f8a8b 100644
--- a/azalea-physics/src/lib.rs
+++ b/azalea-physics/src/lib.rs
@@ -10,7 +10,7 @@ use azalea_ecs::{
entity::Entity,
event::{EventReader, EventWriter},
query::With,
- schedule::{IntoSystemDescriptor, SystemSet},
+ schedule::IntoSystemDescriptor,
system::{Query, Res},
AppTickExt,
};
@@ -30,14 +30,11 @@ impl Plugin for PhysicsPlugin {
.add_system(
force_jump_listener
.label("force_jump_listener")
- .after("ai_step"),
- )
- .add_system(
- travel
- .label("travel")
- .after("ai_step")
- .after("force_jump_listener"),
+ .after("walk_listener")
+ .after("sprint_listener")
+ .before(azalea_world::entity::update_bounding_box),
)
+ .add_tick_system(travel.label("travel").after(ai_step))
.add_tick_system(ai_step.label("ai_step"));
}
}