mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fixed water collision bug
This commit is contained in:
parent
2c1c07c6b8
commit
069f259315
@ -647,6 +647,7 @@ impl<'a> PhysicsSystemData<'a> {
|
||||
match (physics_state.in_liquid, physics_state_delta.in_liquid) {
|
||||
// this match computes `x <|> y <|> liftA2 max x y`
|
||||
(Some(x), Some(y)) => Some(x.max(y)),
|
||||
(x @ Some(_), _) => x,
|
||||
(_, y @ Some(_)) => y,
|
||||
_ => None,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user