Skip to content

Commit

Permalink
Return true when starting a do-after
Browse files Browse the repository at this point in the history
  • Loading branch information
Mnemotechnician committed Jul 2, 2024
1 parent 2dcab4d commit 2f5f0de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Content.Shared/Inventory/InventorySystem.Equip.cs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public bool TryEquip(EntityUid actor, EntityUid target, EntityUid itemUid, strin
};

_doAfter.TryStartDoAfter(args);
return false;
return true; // Changed to return true even if the item wasn't equipped instantly
}

if (!_containerSystem.Insert(itemUid, slotContainer))
Expand Down

0 comments on commit 2f5f0de

Please sign in to comment.