Added reader closing (if it will help) and returns default group rather than "null"

This commit is contained in:
Twitchy 2011-07-12 21:16:59 +12:00
parent c090d9a9f6
commit 30d0d48386
8 changed files with 37 additions and 13 deletions

View file

@ -478,16 +478,7 @@ namespace TShockAPI
return TShock.Groups.groups[i];
}
}
//shit, it didnt work, reload and try again
TShock.Groups.LoadPermisions();
for (int i = 0; i < TShock.Groups.groups.Count; i++)
{
if (TShock.Groups.groups[i].Name.Equals(groupName))
{
return TShock.Groups.groups[i];
}
}
return new Group("null");
return new Group("default");
}
/// <summary>