From 8067a7d0aa2822f84142ca38773f97ad65187e9b Mon Sep 17 00:00:00 2001 From: Kamron Batman <3953314+kamronbatman@users.noreply.github.com> Date: Sat, 22 Aug 2026 12:42:54 -0700 Subject: [PATCH] refactor: single CompactInfo lookup when LastMoved clears the reset stamp Going through the DecayResetTime property re-ran LookupCompactInfo and the default check on every set; core code accesses the field directly. Co-Authored-By: Claude Fable 5 --- Projects/Server/Items/Item.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Projects/Server/Items/Item.cs b/Projects/Server/Items/Item.cs index d787ba775..113cbf913 100644 --- a/Projects/Server/Items/Item.cs +++ b/Projects/Server/Items/Item.cs @@ -345,11 +345,12 @@ public partial class Item : IHued, IComparable, ISpawnable, IObjectPropert _lastMoved = value; // A move at or past the reset stamp supersedes it; drop it so the CompactInfo can collapse. - var reset = DecayResetTime; + var info = LookupCompactInfo(); - if (reset != default && reset <= value) + if (info != null && info.m_DecayReset != default && info.m_DecayReset <= value) { - DecayResetTime = default; + info.m_DecayReset = default; + VerifyCompactInfo(); } } }