mirror of
https://github.com/CyberL1/Minecraft-Realms-Emulator.git
synced 2024-12-22 04:18:21 -05:00
fix: SettingsEnum casing
This commit is contained in:
parent
412e842905
commit
c9471f66c6
@ -2,9 +2,9 @@
|
||||
{
|
||||
public enum SettingsEnum
|
||||
{
|
||||
newsLink,
|
||||
defaultServerAddress,
|
||||
trialMode,
|
||||
workMode
|
||||
NewsLink,
|
||||
DefaultServerAddress,
|
||||
TrialMode,
|
||||
WorkMode
|
||||
}
|
||||
}
|
||||
|
@ -35,7 +35,7 @@ namespace Minecraft_Realms_Emulator.Modes.External.Controllers
|
||||
public ActionResult<NewsResponse> GetNews()
|
||||
{
|
||||
var config = new ConfigHelper(_context);
|
||||
var newsLink = config.GetSetting(nameof(SettingsEnum.newsLink));
|
||||
var newsLink = config.GetSetting(nameof(SettingsEnum.NewsLink));
|
||||
|
||||
var news = new NewsResponse
|
||||
{
|
||||
|
@ -22,7 +22,7 @@ namespace Minecraft_Realms_Emulator.Modes.External.Controllers
|
||||
public ActionResult<bool> GetTrial()
|
||||
{
|
||||
var config = new ConfigHelper(_context);
|
||||
var trialMode = config.GetSetting(nameof(SettingsEnum.trialMode));
|
||||
var trialMode = config.GetSetting(nameof(SettingsEnum.TrialMode));
|
||||
|
||||
return Ok(trialMode.Value);
|
||||
}
|
||||
|
@ -52,7 +52,7 @@ var db = scope.ServiceProvider.GetRequiredService<DataContext>();
|
||||
app.MapControllers();
|
||||
|
||||
var config = new ConfigHelper(db);
|
||||
var mode = config.GetSetting(nameof(SettingsEnum.workMode));
|
||||
var mode = config.GetSetting(nameof(SettingsEnum.WorkMode));
|
||||
|
||||
if (mode == null)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user