Allowed to receive an item if it is 0.

This commit is contained in:
AkjaHAsLk1IALk0MasH 2023-06-08 16:33:32 +07:00
parent 914d743264
commit 3a90029d51

View file

@ -180,8 +180,6 @@ namespace TShockAPI
/// <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);