This commit is contained in:
Gurge44 committed 2024-05-16 14:56:10 +02:00
1 parent f6f659b95a
commit 111d4f1767
1 file changed
+1 -1
+1 -1
View File
@@ -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;