Skip to content

Commit

Permalink
Remove breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
louis1706 committed Jan 19, 2025
1 parent c6ae353 commit 90c2f3e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion EXILED/Exiled.API/Features/Items/Usable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,15 @@ public override Pickup CreatePickup(Vector3 position, Quaternion? rotation = nul
return pickup;
}

/// <summary>
/// Uses the item.
/// </summary>
public virtual void Use() => Use(Owner);

/// <summary>
/// Uses the item.
/// </summary>
/// <param name="owner">Target <see cref="Player"/> to use an <see cref="Usable"/>.</param>
/// <exception cref="System.InvalidOperationException">The <see cref="Item.Owner"/> of the item cannot be <see langword="null"/>.</exception>
public virtual void Use(Player owner = null)
{
Player oldOwner = Owner;
Expand Down

0 comments on commit 90c2f3e

Please sign in to comment.