From 1bc83339bb5705e3d9aee02f42d78df048013a83 Mon Sep 17 00:00:00 2001 From: Kamron Batman <3953314+kamronbatman@users.noreply.github.com> Date: Mon, 10 Aug 2026 09:06:43 -0700 Subject: [PATCH] fix: Fixes guardian lazy check on Treasure Map Chests (#2569) ### Summary Fixes a crash bug from the lazy check on treasure map chest guardians. --- Projects/UOContent/Items/Containers/TreasureMapChest.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Projects/UOContent/Items/Containers/TreasureMapChest.cs b/Projects/UOContent/Items/Containers/TreasureMapChest.cs index 94cbf7fad..e0486182d 100644 --- a/Projects/UOContent/Items/Containers/TreasureMapChest.cs +++ b/Projects/UOContent/Items/Containers/TreasureMapChest.cs @@ -304,7 +304,7 @@ public partial class TreasureMapChest : LockableContainer if (_level == 0 && from.AccessLevel < AccessLevel.GameMaster) { - if (_guardians.Count > 0) + if (_guardians != null) { for (var i = 0; i < _guardians.Count; i++) { @@ -381,10 +381,8 @@ public partial class TreasureMapChest : LockableContainer public override void OnItemLifted(Mobile from, Item item) { - var notYetLifted = _lifted?.Contains(item) != true; from.RevealingAction(); - - if (notYetLifted) + if (_lifted?.Contains(item) != true) { _lifted ??= []; _lifted.Add(item);