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

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);