diff --git a/TShockAPI/Utils.cs b/TShockAPI/Utils.cs index efe171301..4ee41c012 100644 --- a/TShockAPI/Utils.cs +++ b/TShockAPI/Utils.cs @@ -330,7 +330,7 @@ public List GetItemByName(string name) /// The item represented by the tag. public Item GetItemFromTag(string tag) { - Regex regex = new Regex(@"\[i(tem)?(?:\/s(?\d{1,3}))?(?:\/p(?\d{1,3}))?:(?-?\d{1,4})\]"); + Regex regex = new Regex(@"\[i(tem)?(?:\/s(?\d{1,4}))?(?:\/p(?\d{1,3}))?:(?-?\d{1,4})\]"); Match match = regex.Match(tag); if (!match.Success) return null;