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
|
|
@ -16,7 +16,7 @@ You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
@ -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