fix: flight can stop on noclip enabled

This commit is contained in:
MihailRis
2024-10-04 16:57:29 +03:00
parent 414f18f7c7
commit f63ab345ea
+1 -1
View File
@@ -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) {