Removed unused GetItemID from TShock.cs (Use GetItemByID, GetItemByName or GetItemByIdOrName in Tools.cs)
This commit is contained in:
parent
bf49ae7b99
commit
99cafd359e
1 changed files with 0 additions and 13 deletions
|
|
@ -464,19 +464,6 @@ namespace TShockAPI
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int GetItemID(string name)
|
|
||||||
{
|
|
||||||
Item item = new Item();
|
|
||||||
name = name.ToLower();
|
|
||||||
for (int i = 1; i < Main.maxItemTypes; i++)
|
|
||||||
{
|
|
||||||
item.SetDefaults(i);
|
|
||||||
if (item.name.ToLower().StartsWith(name))
|
|
||||||
return i;
|
|
||||||
}
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static bool CheckSpawn(int x, int y)
|
public static bool CheckSpawn(int x, int y)
|
||||||
{
|
{
|
||||||
Vector2 tile = new Vector2(x, y);
|
Vector2 tile = new Vector2(x, y);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue