mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-12 03:39:45 +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/
|
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
|
return listToSearch
|
||||||
.Where(sector => sector.AttachedObject != null
|
.Where(sector => sector.AttachedObject != null
|
||||||
&& !_sectorBlacklist.Contains(sector.Type))
|
&& !_sectorBlacklist.Contains(sector.Type))
|
||||||
|
Loading…
Reference in New Issue
Block a user