aboutsummaryrefslogtreecommitdiff
path: root/azalea/src
diff options
context:
space:
mode:
Diffstat (limited to 'azalea/src')
-rw-r--r--azalea/src/pathfinder/mod.rs6
-rw-r--r--azalea/src/pathfinder/simulation.rs2
2 files changed, 5 insertions, 3 deletions
diff --git a/azalea/src/pathfinder/mod.rs b/azalea/src/pathfinder/mod.rs
index 03d161fc..99bc7787 100644
--- a/azalea/src/pathfinder/mod.rs
+++ b/azalea/src/pathfinder/mod.rs
@@ -586,6 +586,8 @@ mod tests {
start_pos.z as f64 + 0.5,
));
let mut simulation = Simulation::new(chunks, player);
+
+ // you can uncomment this while debugging tests to get trace logs
// simulation.app.add_plugins(bevy_log::LogPlugin {
// level: bevy_log::Level::TRACE,
// filter: "".to_string(),
@@ -693,7 +695,7 @@ mod tests {
let mut simulation = setup_simulation(
&mut partial_chunks,
BlockPos::new(0, 71, 0),
- BlockPos::new(3, 68, 3),
+ BlockPos::new(3, 67, 4),
vec![
BlockPos::new(0, 70, 0),
BlockPos::new(0, 69, 1),
@@ -703,7 +705,7 @@ mod tests {
BlockPos::new(3, 66, 4),
],
);
- for _ in 0..140 {
+ for _ in 0..100 {
simulation.tick();
}
assert_eq!(
diff --git a/azalea/src/pathfinder/simulation.rs b/azalea/src/pathfinder/simulation.rs
index 565e3e92..2b1bfd42 100644
--- a/azalea/src/pathfinder/simulation.rs
+++ b/azalea/src/pathfinder/simulation.rs
@@ -68,7 +68,7 @@ impl Simulation {
azalea_client::task_pool::TaskPoolPlugin::default(),
))
// make sure it doesn't do fixed ticks without us telling it to
- .insert_resource(FixedTime::new(Duration::from_secs(60)))
+ .insert_resource(FixedTime::new(Duration::MAX))
.insert_resource(InstanceContainer {
instances: [(instance_name.clone(), Arc::downgrade(&instance.clone()))]
.iter()