From 2f7a8072019faa9fe7e66cf301dd6df8e74ceccc Mon Sep 17 00:00:00 2001 From: hufang360 <hufang360@sina.com> Date: Mon, 9 Jan 2023 10:56:17 +0800 Subject: [PATCH] Update Utils.cs Item stack can be 9999. --- TShockAPI/Utils.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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<Item> GetItemByName(string name) /// <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;