Fix landing 1 pixel above the ground in purple night

This commit is contained in:
Gwilym Kuiper 2023-01-26 20:52:54 +00:00
parent 2b91cb8773
commit b0314f69c5

View file

@ -580,7 +580,6 @@ impl<'a> Player<'a> {
match self.state { match self.state {
PlayerState::OnGround => { PlayerState::OnGround => {
self.entity.velocity.y = 0.into();
self.entity.velocity.x = self.entity.velocity.x * 40 / 64; self.entity.velocity.x = self.entity.velocity.x * 40 / 64;
match &mut self.attack_timer { match &mut self.attack_timer {