Merge branch 'general-devel' into consistency-playeractive-patch

This commit is contained in:
Stargazing Koishi 2023-04-28 15:53:43 -07:00 committed by GitHub
commit f1b67f8602
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 1106 additions and 1037 deletions

View file

@ -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;