Make Utils.GetBuffDescription actually return the buff's description & properly read 'buffTime' from the stream. Fixes #1469

This commit is contained in:
ProfessorXZ 2017-09-08 21:59:13 +02:00
parent 9dce68e6e2
commit 5a04b66514
2 changed files with 5 additions and 5 deletions

View file

@ -465,7 +465,7 @@ namespace TShockAPI
/// <returns>description</returns>
public string GetBuffDescription(int id)
{
return (id > 0 && id < Main.maxBuffTypes) ? Lang.GetBuffName(id) : "null";
return (id > 0 && id < Main.maxBuffTypes) ? Lang.GetBuffDescription(id) : "null";
}
/// <summary>