Allowed to receive an item if it is 0.
This commit is contained in:
parent
914d743264
commit
3a90029d51
1 changed files with 0 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue