Missing another null check.
This commit is contained in:
parent
625bab753b
commit
d1fe086124
1 changed files with 2 additions and 1 deletions
|
|
@ -1938,7 +1938,8 @@ namespace TShockAPI
|
|||
args.Player.SendMessage(r.Name + ": P: " + r.DisableBuild + " X: " + r.Area.X + " Y: " + r.Area.Y + " W: " + r.Area.Width + " H: " + r.Area.Height);
|
||||
foreach (int s in r.AllowedIDs)
|
||||
{
|
||||
args.Player.SendMessage(r.Name + ": " + TShock.Users.GetUserByID(s).Name);
|
||||
var user = TShock.Users.GetUserByID(s);
|
||||
args.Player.SendMessage(r.Name + ": " + (user != null ? user.Name : "Unknown"));
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue