Small InventorySystem.Equip Unequip Reason bugfix (#37265)

Fix small bug
This commit is contained in:
Cojoke 2025-05-07 19:47:03 -05:00 committed by deltanedas
parent d56191fa33
commit b1aa0eb0d1
1 changed files with 1 additions and 1 deletions

View File

@ -547,7 +547,7 @@ public abstract partial class InventorySystem
RaiseLocalEvent(itemUid, itemAttemptEvent, true); RaiseLocalEvent(itemUid, itemAttemptEvent, true);
if (itemAttemptEvent.Cancelled) if (itemAttemptEvent.Cancelled)
{ {
reason = attemptEvent.Reason ?? reason; reason = itemAttemptEvent.Reason ?? reason;
return false; return false;
} }