Skip to content

Commit

Permalink
Allowed to receive an item if it is 0.
Browse files Browse the repository at this point in the history
  • Loading branch information
AgaSpace committed Jun 8, 2023
1 parent 914d743 commit 3a90029
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions TShockAPI/NetItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,6 @@ public NetItem(Item item)
/// <exception cref="Exception">If the item ID is 0.</exception>
public Item ToItem()
{
if (_netId == 0)
throw new Exception("It is impossible to create an item whose ID is 0.");
Item item = new Item();

item.netDefaults(_netId);
Expand Down

0 comments on commit 3a90029

Please sign in to comment.