Skip uninitialized players on MultiplePlayerUpdate
This commit is contained in:
parent
34e0063389
commit
92165cebc2
@ -13,6 +13,9 @@ namespace NeonTea.Quakeball.Networking.Packets {
|
|||||||
|
|
||||||
public MultiplePlayerUpdatesPckt(List<NetPlayer> players) {
|
public MultiplePlayerUpdatesPckt(List<NetPlayer> players) {
|
||||||
foreach (NetPlayer p in players) {
|
foreach (NetPlayer p in players) {
|
||||||
|
if (p.Controlled == null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
Updates.Add(p.Controlled.CreatePacket(p.Id));
|
Updates.Add(p.Controlled.CreatePacket(p.Id));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user