fix: flight can stop on noclip enabled
This commit is contained in:
@@ -152,7 +152,7 @@ void Player::postUpdate() {
|
|||||||
auto& hitbox = entity->getRigidbody().hitbox;
|
auto& hitbox = entity->getRigidbody().hitbox;
|
||||||
position = hitbox.position;
|
position = hitbox.position;
|
||||||
|
|
||||||
if (flight && hitbox.grounded) {
|
if (flight && hitbox.grounded && !noclip) {
|
||||||
flight = false;
|
flight = false;
|
||||||
}
|
}
|
||||||
if (spawnpoint.y <= 0.1) {
|
if (spawnpoint.y <= 0.1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user