Fix wrong constant & disable loading at startup by default

This commit is contained in:
Beu 2022-04-14 01:00:19 +02:00
parent 0850f83787
commit 300f738943

View File

@ -78,7 +78,7 @@ class GameModeSettings implements ConfiguratorMenu, CallbackListener, Communicat
// Settings // Settings
$this->maniaControl->getSettingManager()->initSetting($this, self::SETTING_HIDE_SETTINGS_WITH_DESCRIPTION_HIDDEN, true); $this->maniaControl->getSettingManager()->initSetting($this, self::SETTING_HIDE_SETTINGS_WITH_DESCRIPTION_HIDDEN, true);
$this->maniaControl->getSettingManager()->initSetting($this, self::SETTING_LOAD_DEFAULT_SETTINGS_STARTUP, true); $this->maniaControl->getSettingManager()->initSetting($this, self::SETTING_LOAD_DEFAULT_SETTINGS_STARTUP, false);
$this->maniaControl->getSettingManager()->initSetting($this, self::SETTING_LOAD_DEFAULT_SETTINGS_MAP_BEGIN, false); $this->maniaControl->getSettingManager()->initSetting($this, self::SETTING_LOAD_DEFAULT_SETTINGS_MAP_BEGIN, false);
$this->maniaControl->getSettingManager()->initSetting($this, self::SETTING_SORT_SETTINGS, true); $this->maniaControl->getSettingManager()->initSetting($this, self::SETTING_SORT_SETTINGS, true);
@ -273,7 +273,7 @@ class GameModeSettings implements ConfiguratorMenu, CallbackListener, Communicat
* Handle Begin Map Callback * Handle Begin Map Callback
*/ */
public function onBeginMap() { public function onBeginMap() {
if ($this->maniaControl->getSettingManager()->getSettingValue($this, self::SETTING_LOAD_DEFAULT_SETTINGS_MAP_BEGIN)) { if ($this->maniaControl->getSettingManager()->getSettingValue($this, self::SETTING_LOAD_DEFAULT_SETTINGS_STARTUP)) {
$this->loadSettingsFromDatabase(); $this->loadSettingsFromDatabase();
} }
} }