Config presets system. (#12824)

This commit is contained in:
Pieter-Jan Briers
2022-12-16 23:26:24 +01:00
committed by GitHub
parent 326fdefe85
commit 55c61b9c35
8 changed files with 105 additions and 17 deletions

View File

@@ -60,9 +60,6 @@ public sealed partial class CargoSystem
private void InitializeShuttle()
{
#if !FULL_RELEASE
_configManager.OverrideDefault(CCVars.CargoShuttles, false);
#endif
_enabled = _configManager.GetCVar(CCVars.CargoShuttles);
// Don't want to immediately call this as shuttles will get setup in the natural course of things.
_configManager.OnValueChanged(CCVars.CargoShuttles, SetCargoShuttleEnabled);