Disable events by default in debug (#12610)

im too lazy to update my cvars and i can't be the only one tilting
This commit is contained in:
metalgearsloth
2022-11-16 01:33:46 +11:00
committed by GitHub
parent 1eba7ef253
commit a0362d6f85

View File

@@ -30,6 +30,10 @@ public sealed class EventManagerSystem : EntitySystem
_sawmill = Logger.GetSawmill("events"); _sawmill = Logger.GetSawmill("events");
#if DEBUG
_configurationManager.OverrideDefault(CCVars.EventsEnabled, false);
#endif
_configurationManager.OnValueChanged(CCVars.EventsEnabled, SetEnabled, true); _configurationManager.OnValueChanged(CCVars.EventsEnabled, SetEnabled, true);
} }