Disable NPCs in debug (#10353)

This commit is contained in:
metalgearsloth 2022-08-07 18:51:04 +10:00 committed by GitHub
parent b947151d9a
commit f5fdf4e672
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -34,6 +34,11 @@ namespace Content.Server.AI.EntitySystems
public override void Initialize()
{
base.Initialize();
// Makes physics etc debugging easier.
#if DEBUG
_configurationManager.OverrideDefault(CCVars.NPCEnabled, false);
#endif
_sawmill = Logger.GetSawmill("npc");
InitializeUtility();
SubscribeLocalEvent<NPCComponent, MobStateChangedEvent>(OnMobStateChange);