diff options
| author | mat <git@matdoes.dev> | 2023-11-07 11:34:32 -0600 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2023-11-07 11:34:32 -0600 |
| commit | 70b9c88d63326ce4f328fa4c867cd9b415de7b0d (patch) | |
| tree | 738778243940c053e829c9e66cd096ac0e518767 /azalea-physics/src/lib.rs | |
| parent | ee55453fbf9a799e23cbca60e384f6adf3d11acf (diff) | |
| download | azalea-drasl-70b9c88d63326ce4f328fa4c867cd9b415de7b0d.tar.xz | |
fix tests to compile
Diffstat (limited to 'azalea-physics/src/lib.rs')
| -rw-r--r-- | azalea-physics/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea-physics/src/lib.rs b/azalea-physics/src/lib.rs index 615cc3ad..9f02ddc4 100644 --- a/azalea-physics/src/lib.rs +++ b/azalea-physics/src/lib.rs @@ -342,14 +342,14 @@ mod tests { use azalea_entity::{EntityBundle, EntityPlugin}; use azalea_world::{Chunk, MinecraftEntityId, PartialInstance}; use bevy_app::App; - use bevy_time::fixed_timestep::FixedTime; + use bevy_time::{Fixed, Time}; use uuid::Uuid; /// You need an app to spawn entities in the world and do updates. fn make_test_app() -> App { let mut app = App::new(); app.add_plugins((PhysicsPlugin, EntityPlugin)) - .insert_resource(FixedTime::new(Duration::from_millis(50))) + .insert_resource(Time::<Fixed>::from_duration(Duration::from_millis(50))) .init_resource::<InstanceContainer>(); app } |
