mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
move comment
This commit is contained in:
parent
25230afa2a
commit
3df4fc913e
@ -100,9 +100,9 @@ namespace NewHorizons.Handlers
|
||||
|
||||
public static bool IsBundleInUse(string assetBundle)
|
||||
{
|
||||
// If a sector in the list is null then it is always in use
|
||||
if (_sectorCache.TryGetValue(assetBundle, out var sectors))
|
||||
foreach (var sector in sectors)
|
||||
// If a sector in the list is null then it is always in use
|
||||
if (sector == null || sector.ContainsAnyOccupants(DynamicOccupant.Player | DynamicOccupant.Probe))
|
||||
return true;
|
||||
return false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user