mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Set fluid medium to air if none
This commit is contained in:
parent
23995b2ef1
commit
a6dc8853da
@ -864,7 +864,7 @@ impl<'a> PhysicsData<'a> {
|
||||
vel: Vel::zero(),
|
||||
})
|
||||
.or_else(|| match physics_state.in_fluid {
|
||||
Some(Fluid::Water { .. }) => Some(Fluid::Air {
|
||||
Some(Fluid::Water { .. }) | None => Some(Fluid::Air {
|
||||
elevation: pos.0.z,
|
||||
vel: Vel::default(),
|
||||
}),
|
||||
@ -1541,7 +1541,7 @@ fn box_voxel_collision<'a, T: BaseVol<Vox = Block> + ReadVol>(
|
||||
vel: Vel::zero(),
|
||||
})
|
||||
.or_else(|| match physics_state.in_fluid {
|
||||
Some(Fluid::Water { .. }) => Some(Fluid::Air {
|
||||
Some(Fluid::Water { .. }) | None => Some(Fluid::Air {
|
||||
elevation: pos.0.z,
|
||||
vel: Vel::default(),
|
||||
}),
|
||||
|
Loading…
Reference in New Issue
Block a user