Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Player.RemoveItem(ItemBase item) #227

Open
wants to merge 1 commit into
base: 13.1
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update Player.cs
SrLicht committed Sep 26, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 06dd0a4ff8f03f37e1d67a80cb81f8185e51312c
2 changes: 1 addition & 1 deletion NwPluginAPI/Core/Player.cs
Original file line number Diff line number Diff line change
@@ -1139,7 +1139,7 @@ public void IntercomUnmute(bool revokeMute)
/// Removes an specific item.
/// </summary>
/// <param name="item">The item base.</param>
public void RemoveItem(ItemBase item) => ReferenceHub.inventory.UserInventory.Items.Remove(item.ItemSerial);
public void RemoveItem(ItemBase item) => ReferenceHub.inventory.ServerRemoveItem(item.ItemSerial, item.PickupDropModel);

/// <summary>
/// Removes all specific items.