From 826419b5459ad7abc6e62192c857a0967c3c596b Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Wed, 1 Jan 2025 17:01:22 +0700 Subject: [PATCH] Fixed wrong isCrouching condition --- .../kstarbound/world/entities/ActorMovementController.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/ru/dbotthepony/kstarbound/world/entities/ActorMovementController.kt b/src/main/kotlin/ru/dbotthepony/kstarbound/world/entities/ActorMovementController.kt index 0ab0a63a..db1b3eaa 100644 --- a/src/main/kotlin/ru/dbotthepony/kstarbound/world/entities/ActorMovementController.kt +++ b/src/main/kotlin/ru/dbotthepony/kstarbound/world/entities/ActorMovementController.kt @@ -613,7 +613,7 @@ class ActorMovementController() : MovementController() { if (isGroundMovement) { this.isRunning = isRunning && controlMove != null this.isWalking = !isRunning && controlMove != null - this.isCrouching = controlCrouch && controlMove != null + this.isCrouching = controlCrouch && controlMove == null } isFlying = controlFly != null