From f63ab345eaaf7885cfd0298a99cea58a423741fb Mon Sep 17 00:00:00 2001 From: MihailRis Date: Fri, 4 Oct 2024 16:57:29 +0300 Subject: [PATCH] fix: flight can stop on noclip enabled --- src/objects/Player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/objects/Player.cpp b/src/objects/Player.cpp index 0a126c1b..0f1df818 100644 --- a/src/objects/Player.cpp +++ b/src/objects/Player.cpp @@ -152,7 +152,7 @@ void Player::postUpdate() { auto& hitbox = entity->getRigidbody().hitbox; position = hitbox.position; - if (flight && hitbox.grounded) { + if (flight && hitbox.grounded && !noclip) { flight = false; } if (spawnpoint.y <= 0.1) {