Skip to content

Commit

Permalink
проверка от дауна
Browse files Browse the repository at this point in the history
  • Loading branch information
Rinary1 committed Oct 15, 2024
1 parent ad57ea9 commit 6f55706
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Content.Shared/CombatMode/SharedCombatModeSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,11 @@ private void SetMouseRotatorComponents(EntityUid uid, bool value)
{
if(TryComp<MechPilotComponent>(uid, out var mechPilot))
{
RemComp<MouseRotatorComponent>(mechPilot.Mech);
RemComp<NoRotateOnMoveComponent>(mechPilot.Mech);
if(HasComp<MouseRotatorComponent>(mechPilot.Mech))
{
RemComp<MouseRotatorComponent>(mechPilot.Mech);
RemComp<NoRotateOnMoveComponent>(mechPilot.Mech);
}
}
RemComp<MouseRotatorComponent>(uid);
RemComp<NoRotateOnMoveComponent>(uid);
Expand Down

0 comments on commit 6f55706

Please sign in to comment.