fix: Updates container searches for non-generic types (#1567)

This commit is contained in:
Voxpire 2023-11-23 17:29:45 +00:00 • committed by GitHub
parent 331f24cb71
commit 3109f59d4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 248 additions and 175 deletions

View file

@ -2394,7 +2394,7 @@ namespace Server.Mobiles
// This fixes a "bug" where players put blessed items in nested bags and they were dropped on death
if (Core.AOS && Backpack?.Deleted == false)
{
foreach (var item in Backpack.EnumerateItemsByType<Item>(predicate: FindItems_Callback))
foreach (var item in Backpack.EnumerateItems(true, FindItems_Callback))
{
Backpack.AddItem(item);
}