Skip to content
This repository was archived by the owner on Jun 21, 2025. It is now read-only.
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
9 changes: 8 additions & 1 deletion NwPluginAPI/Core/Items/ItemPickup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/// <summary>
/// Creates a new <see cref="ItemPickup"/>.
/// </summary>
Expand Down Expand Up @@ -151,4 +158,4 @@ public ItemPickup(ItemPickupBase item)
OriginalObject = item;
}
}
}
}