]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Small InventorySystem.Equip Unequip Reason bugfix (#37265)
authorCojoke <83733158+Cojoke-dot@users.noreply.github.com>
Thu, 8 May 2025 00:47:03 +0000 (19:47 -0500)
committerGitHub <noreply@github.com>
Thu, 8 May 2025 00:47:03 +0000 (20:47 -0400)
Fix small bug

Content.Shared/Inventory/InventorySystem.Equip.cs

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