Remove redundant sendtoall

This commit is contained in:
Ricardo Lopes 2020-02-13 21:50:48 +01:00
parent d6e1f4c2a4
commit cdb8884e45

View File

@ -33,11 +33,7 @@ namespace QSB {
SectorMessage msg = new SectorMessage();
msg.sectorId = (int) sector.GetName();
msg.senderId = netId.Value;
if (isServer) {
NetworkServer.SendToAll(SectorMessage.Type, msg);
} else {
connectionToServer.Send(SectorMessage.Type, msg);
}
connectionToServer.Send(SectorMessage.Type, msg);
}
}