fix: stop switching quickly between climbing and idle at low energy

This commit is contained in:
timokoesters 2020-03-10 17:33:36 +01:00
parent 344bb955a2
commit c88c4687f3

View File

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