Prevented stalling when jumping before a block-hopping

This commit is contained in:
Joshua Barretto 2019-06-30 14:11:11 +01:00
parent 45e30d0c84
commit 2985f94751

View File

@ -260,7 +260,6 @@ impl<'a> System<'a> for Sys {
// If the space above is free...
if !collision_with(pos.0 + Vec3::unit_z() * 1.1, near_iter.clone())
&& resolve_dir.z == 0.0
&& vel.0.z <= 0.0
&& collision_with(
pos.0 + resolve_dir - Vec3::unit_z() * 1.05,
near_iter.clone(),