From 01634cff4a32c36b7da3299eaaedcc113bc5b07f Mon Sep 17 00:00:00 2001 From: Lacyway <20912169+Lacyway@users.noreply.github.com> Date: Sun, 12 May 2024 08:45:06 +0200 Subject: [PATCH] Disable gravity on disabled bots --- Fika.Core/Coop/BotClasses/BotMovementContext.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Fika.Core/Coop/BotClasses/BotMovementContext.cs b/Fika.Core/Coop/BotClasses/BotMovementContext.cs index f57b13d3..f320a4d6 100644 --- a/Fika.Core/Coop/BotClasses/BotMovementContext.cs +++ b/Fika.Core/Coop/BotClasses/BotMovementContext.cs @@ -11,7 +11,7 @@ public sealed class BotMovementContext : MovementContext public override void ApplyGravity(ref Vector3 motion, float deltaTime, bool stickToGround) { - if (!Bot.isStarted) + if (!Bot.isStarted || Bot.AIData.BotOwner.BotState == EBotState.NonActive) { return; }