Forgot one call when caching IsAdmin
This commit is contained in:
parent
f5a76dd154
commit
100d7d10f3
1 changed files with 1 additions and 1 deletions
|
|
@ -317,7 +317,7 @@ namespace TShockAPI
|
||||||
{
|
{
|
||||||
if (!shownVersion)
|
if (!shownVersion)
|
||||||
{
|
{
|
||||||
if (Tools.IsAdmin(Tools.FindPlayer(ply)))
|
if (TShock.players[ply].IsAdmin())
|
||||||
{
|
{
|
||||||
WebClient client = new WebClient();
|
WebClient client = new WebClient();
|
||||||
client.Headers.Add("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705;)");
|
client.Headers.Add("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705;)");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue