Change max buff limit from short to int
This commit is contained in:
parent
563c439aee
commit
9418e4304f
1 changed files with 1 additions and 1 deletions
|
|
@ -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!",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue