This commit is contained in:
SFENCE 2024-04-09 18:15:47 +02:00
parent 4a731b5a10
commit 74523c8bff
1 changed files with 0 additions and 6 deletions

View File

@ -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);
}