mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
Sync
This commit is contained in:
1 parent
f6f659b95a
commit
111d4f1767
1 file changed
+1
-1
@@ -182,7 +182,7 @@ namespace EHR.Modules
|
||||
public static bool GetSettingForPlayerTeam(byte id, string settingName)
|
||||
{
|
||||
var team = GetCustomTeam(id);
|
||||
var optionsGroup = CustomTeamOptionGroup.First(x => x.Team.Equals(team));
|
||||
var optionsGroup = CustomTeamOptions.First(x => x.Team.Equals(team));
|
||||
var setting = optionsGroup.GetType().GetFields().FirstOrDefault(x => x.Name == settingName);
|
||||
if (setting == null) return false;
|
||||
return setting.GetValue(optionsGroup) as bool ?? false;
|
||||
|
||||
Reference in new issue
Block a user