Skip to content

Commit

Permalink
No need of delay also call the same method twice
Browse files Browse the repository at this point in the history
  • Loading branch information
louis1706 committed Jan 20, 2025
1 parent 764e9ec commit e22b4bd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions EXILED/Exiled.CustomItems/API/Features/CustomArmor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,7 @@ public override void Give(Player player, bool displayMessage = true)

TrackedSerials.Add(armor.Serial);

Timing.CallDelayed(0.05f, () => OnAcquired(player, armor, displayMessage));

if (displayMessage)
ShowPickedUpMessage(player);
OnAcquired(player, armor, displayMessage);
}

/// <inheritdoc/>
Expand Down

0 comments on commit e22b4bd

Please sign in to comment.