mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 14:26:04 +00:00
fix tests to compile
This commit is contained in:
parent
ee55453fbf
commit
70b9c88d63
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue