don't display '()' in banned item list when no allowed groups is available
This commit is contained in:
parent
5b7971f753
commit
e113982158
1 changed files with 1 additions and 1 deletions
|
|
@ -227,7 +227,7 @@ namespace TShockAPI.DB
|
||||||
|
|
||||||
public override string ToString()
|
public override string ToString()
|
||||||
{
|
{
|
||||||
return Name + " (" + String.Join(",", AllowedGroups) + ")";
|
return Name + (AllowedGroups.Count > 0 ? " (" + String.Join(",", AllowedGroups) + ")" : "");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue