Return real nulls as opposed to string nulls
This commit is contained in:
parent
cb47240c7e
commit
e705e398e8
1 changed files with 2 additions and 2 deletions
|
|
@ -449,7 +449,7 @@ namespace TShockAPI
|
||||||
/// <returns>name</returns>
|
/// <returns>name</returns>
|
||||||
public string GetBuffName(int id)
|
public string GetBuffName(int id)
|
||||||
{
|
{
|
||||||
return (id > 0 && id < Main.maxBuffTypes) ? Lang.GetBuffName(id) : "null";
|
return (id > 0 && id < Main.maxBuffTypes) ? Lang.GetBuffName(id) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
@ -459,7 +459,7 @@ namespace TShockAPI
|
||||||
/// <returns>description</returns>
|
/// <returns>description</returns>
|
||||||
public string GetBuffDescription(int id)
|
public string GetBuffDescription(int id)
|
||||||
{
|
{
|
||||||
return (id > 0 && id < Main.maxBuffTypes) ? Lang.GetBuffDescription(id) : "null";
|
return (id > 0 && id < Main.maxBuffTypes) ? Lang.GetBuffDescription(id) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue