Changed the method from NetItem.Build to NetItem.ToItem.
This commit is contained in:
parent
7ab0570786
commit
914d743264
1 changed files with 2 additions and 2 deletions
|
|
@ -178,7 +178,7 @@ namespace TShockAPI
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>A copy of the item.</returns>
|
/// <returns>A copy of the item.</returns>
|
||||||
/// <exception cref="Exception">If the item ID is 0.</exception>
|
/// <exception cref="Exception">If the item ID is 0.</exception>
|
||||||
public Item Build()
|
public Item ToItem()
|
||||||
{
|
{
|
||||||
if (_netId == 0)
|
if (_netId == 0)
|
||||||
throw new Exception("It is impossible to create an item whose ID is 0.");
|
throw new Exception("It is impossible to create an item whose ID is 0.");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue