From 2f7a8072019faa9fe7e66cf301dd6df8e74ceccc Mon Sep 17 00:00:00 2001 From: hufang360 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 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;