mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-11 18:41:59 +00:00
readability
This commit is contained in:
parent
6ec1400de1
commit
92d3295e76
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user