diff options
Diffstat (limited to 'azalea-physics/src')
| -rw-r--r-- | azalea-physics/src/fluids.rs | 2 | ||||
| -rw-r--r-- | azalea-physics/src/lib.rs | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/azalea-physics/src/fluids.rs b/azalea-physics/src/fluids.rs index eca4266e..6e89cdea 100644 --- a/azalea-physics/src/fluids.rs +++ b/azalea-physics/src/fluids.rs @@ -23,7 +23,7 @@ pub fn update_in_water_state_and_do_fluid_pushing( for (mut physics, position, instance_name) in &mut query { let world_lock = instance_container .get(instance_name) - .expect("All entities should be in a valid world"); + .expect("All entities with InLoadedChunk should be in a valid world"); let world = world_lock.read(); physics.water_fluid_height = 0.; diff --git a/azalea-physics/src/lib.rs b/azalea-physics/src/lib.rs index 6ea4e946..c626dcdf 100644 --- a/azalea-physics/src/lib.rs +++ b/azalea-physics/src/lib.rs @@ -109,10 +109,8 @@ pub fn ai_step( if !physics.is_in_lava() || physics.on_ground() && fluid_height <= fluid_jump_threshold { - if physics.on_ground() - || in_water - && fluid_height <= fluid_jump_threshold - && physics.no_jump_delay == 0 + if (physics.on_ground() || in_water && fluid_height <= fluid_jump_threshold) + && physics.no_jump_delay == 0 { jump_from_ground( &mut physics, |
