Fix landing 1 pixel above the ground in purple night (#381)

- [x] Changelog updated / no changelog update needed
This commit is contained in:
Gwilym Kuiper 2023-01-26 21:04:32 +00:00 committed by GitHub
commit 64bd1ad7dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 {