mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
fix: stop switching quickly between climbing and idle at low energy
This commit is contained in:
parent
344bb955a2
commit
c88c4687f3
@ -141,6 +141,7 @@ pub fn handle_climb(data: &JoinData, update: &mut StateUpdate) {
|
||||
&& !data.physics.on_ground
|
||||
//&& update.vel.0.z < 0.0
|
||||
&& data.body.is_humanoid()
|
||||
&& update.energy.current() > 100
|
||||
{
|
||||
update.character = CharacterState::Climb {};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user