From 06dd0a4ff8f03f37e1d67a80cb81f8185e51312c Mon Sep 17 00:00:00 2001 From: SrLicht Date: Tue, 26 Sep 2023 19:03:10 -0300 Subject: [PATCH] Update Player.cs --- NwPluginAPI/Core/Player.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NwPluginAPI/Core/Player.cs b/NwPluginAPI/Core/Player.cs index 47475e0..80c5173 100644 --- a/NwPluginAPI/Core/Player.cs +++ b/NwPluginAPI/Core/Player.cs @@ -1139,7 +1139,7 @@ public void IntercomUnmute(bool revokeMute) /// Removes an specific item. /// /// The item base. - public void RemoveItem(ItemBase item) => ReferenceHub.inventory.UserInventory.Items.Remove(item.ItemSerial); + public void RemoveItem(ItemBase item) => ReferenceHub.inventory.ServerRemoveItem(item.ItemSerial, item.PickupDropModel); /// /// Removes all specific items.