Update Utils.cs
Item stack can be 9999.
This commit is contained in:
parent
6e589ffaee
commit
2f7a807201
1 changed files with 1 additions and 1 deletions
|
|
@ -330,7 +330,7 @@ namespace TShockAPI
|
|||
/// <returns>The item represented by the tag.</returns>
|
||||
public Item GetItemFromTag(string tag)
|
||||
{
|
||||
Regex regex = new Regex(@"\[i(tem)?(?:\/s(?<Stack>\d{1,3}))?(?:\/p(?<Prefix>\d{1,3}))?:(?<NetID>-?\d{1,4})\]");
|
||||
Regex regex = new Regex(@"\[i(tem)?(?:\/s(?<Stack>\d{1,4}))?(?:\/p(?<Prefix>\d{1,3}))?:(?<NetID>-?\d{1,4})\]");
|
||||
Match match = regex.Match(tag);
|
||||
if (!match.Success)
|
||||
return null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue