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 GitHub
parent 6bb3b83bf1
commit fdf860d64f

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;
} }