mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-29 09:32:38 +00:00
optimize smh
This commit is contained in:
parent
a774fe07cd
commit
2f31fd174c
@ -137,8 +137,15 @@ public static class QSBPlayerManager
|
||||
{
|
||||
if (QSBCore.IsInMultiplayer && QSBCore.IsHost)
|
||||
{
|
||||
foreach (var player in PlayerList.Where(x => !x.IsLocalPlayer).ToList())
|
||||
for (var i = 0; i < PlayerList.Count; i++)
|
||||
{
|
||||
var player = PlayerList[i];
|
||||
|
||||
if (player.IsLocalPlayer)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
// if we didn't receive a response in the last loop then we should remove them
|
||||
if (!player.HeartbeatReceived)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user