diff --git a/NwPluginAPI/Core/Items/ItemPickup.cs b/NwPluginAPI/Core/Items/ItemPickup.cs index 2da60da..b566c6e 100644 --- a/NwPluginAPI/Core/Items/ItemPickup.cs +++ b/NwPluginAPI/Core/Items/ItemPickup.cs @@ -106,6 +106,13 @@ public static bool Remove(ItemPickupBase item) return CachedItems.Remove(item.Info.Serial); } + public static bool Remove(ushort Serial) + { + if (!CachedItems.TryGetValue(Serial, out ItemPickup it)) return false; + + return CachedItems.Remove(Serial); + } + /// /// Creates a new . /// @@ -151,4 +158,4 @@ public ItemPickup(ItemPickupBase item) OriginalObject = item; } } -} \ No newline at end of file +}