Skip to content

Commit

Permalink
lock sound includes other controlling cockpits besides main
Browse files Browse the repository at this point in the history
  • Loading branch information
xianson committed Sep 12, 2024
1 parent 13f40f7 commit e6289b0
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,14 @@ private void ResolveTargets()
}
}
}
else
{
var player = MyAPIGateway.Players.GetPlayerControllingEntity(target);
if (player != null && !currentLockedPlayers.Contains(player.SteamUserId))
{
currentLockedPlayers.Add(player.SteamUserId);
}
}
}

if (newLockChange == null || newUnlockChange == null)
Expand Down

0 comments on commit e6289b0

Please sign in to comment.