mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Be smarter about ClearEmpty DB
This commit is contained in:
@@ -314,10 +314,10 @@ namespace SabreTools.DatFiles
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
// Convert to list of indices for ease of access
|
// Convert to list of indices for ease of access
|
||||||
List<long> itemsList = [.. items.Keys];
|
List<DatItem> itemsList = [.. items.Values];
|
||||||
|
|
||||||
// If there are no non-blank items, remove
|
// If there are no non-blank items, remove
|
||||||
if (!itemsList.Exists(i => GetItem(i) != null && GetItem(i) is not Blank))
|
if (!itemsList.Exists(i => i != null && i is not Blank))
|
||||||
#if NET40_OR_GREATER || NETCOREAPP
|
#if NET40_OR_GREATER || NETCOREAPP
|
||||||
_buckets.TryRemove(key, out _);
|
_buckets.TryRemove(key, out _);
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user