mirror of https://github.com/minetest/minetest.git
Fix bug.
This commit is contained in:
parent
4a731b5a10
commit
74523c8bff
|
@ -545,12 +545,6 @@ void LocalPlayer::move(f32 dtime, Environment *env, f32 pos_max_d,
|
|||
// Prevent sliding on the ground when jump speed is 0
|
||||
m_can_jump = m_can_jump && jumpspeed != 0.0f;
|
||||
|
||||
// Prevent jump if in node/object
|
||||
if (m_can_jump && could_sneak) {
|
||||
if (collisionCheckIntersection(env, m_client, m_collisionbox, initial_position))
|
||||
m_can_jump = false;
|
||||
}
|
||||
|
||||
// Autojump
|
||||
handleAutojump(dtime, env, result, initial_position, initial_speed, pos_max_d);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue