mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
removed unneeded Distinct() calls
This commit is contained in:
parent
3bbf27674c
commit
05b9a42afb
@ -81,12 +81,12 @@ namespace NewHorizons.Utility
|
||||
|
||||
public static AstroObject[] GetAllAstroObjects()
|
||||
{
|
||||
return _customAstroObjectDictionary.Values.Distinct().ToArray();
|
||||
return _customAstroObjectDictionary.Values.ToArray();
|
||||
}
|
||||
|
||||
public static GameObject[] GetMoons(AstroObject primary)
|
||||
{
|
||||
return _customAstroObjectDictionary.Values.Distinct().Where(x => x._primaryBody == primary).Select(x => x.gameObject).ToArray();
|
||||
return _customAstroObjectDictionary.Values.Where(x => x._primaryBody == primary).Select(x => x.gameObject).ToArray();
|
||||
}
|
||||
|
||||
public static GameObject[] GetChildren(AstroObject primary)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user