From 9418e4304f3f2c035b2827eb5caa8710a83cfb1c Mon Sep 17 00:00:00 2001 From: stacey <57187883+moisterrific@users.noreply.github.com> Date: Wed, 12 May 2021 13:47:27 -0400 Subject: [PATCH] Change max buff limit from short to int --- TShockAPI/Commands.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index 601c2591..5b27ebd7 100644 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -5985,7 +5985,7 @@ namespace TShockAPI int.TryParse(args.Parameters[1], out time); if (id > 0 && id < Main.maxBuffTypes) { - if (time < 0 || time > short.MaxValue) + if (time < 0 || time > int.MaxValue) time = 60; args.Player.SetBuff(id, time * 60); args.Player.SendSuccessMessage(string.Format("You have buffed yourself with {0}({1}) for {2} seconds!",