fsdfgsg
This commit is contained in:
parent
500fc6b211
commit
8c8ca02d88
1 changed files with 1 additions and 1 deletions
|
|
@ -258,7 +258,7 @@ namespace TShockAPI
|
|||
if (byte.TryParse(plr, out plrID))
|
||||
{
|
||||
TSPlayer player = TShock.Players[plrID];
|
||||
if (player.Active)
|
||||
if (player != null && player.Active)
|
||||
{
|
||||
return new List<TSPlayer> { player };
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue