Skip to content

Commit

Permalink
Disable gravity on disabled bots
Browse files Browse the repository at this point in the history
  • Loading branch information
Lacyway committed May 12, 2024
1 parent d052ffa commit 01634cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Fika.Core/Coop/BotClasses/BotMovementContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 01634cf

Please sign in to comment.