readability

This commit is contained in:
Mister_Nebula 2021-02-27 10:07:48 +00:00
parent 6ec1400de1
commit 92d3295e76

View File

@ -80,7 +80,9 @@ namespace QSB.SectorSync
public QSBSector GetClosestSector(Transform trans) // trans rights \o/
{
var listToSearch = _sectorList.Count == 0 ? QSBWorldSync.GetWorldObjects<QSBSector>() : _sectorList;
var listToSearch = _sectorList.Count == 0
? QSBWorldSync.GetWorldObjects<QSBSector>()
: _sectorList;
return listToSearch
.Where(sector => sector.AttachedObject != null
&& !_sectorBlacklist.Contains(sector.Type))