move comment

This commit is contained in:
JohnCorby 2022-08-05 17:03:25 -07:00
parent 25230afa2a
commit 3df4fc913e

View File

@ -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;