Don't reload NPCs unless necessary (#13978)

This commit is contained in:
metalgearsloth
2023-02-07 17:35:32 +11:00
committed by GitHub
parent d5658487f1
commit 2ea4538c3a
2 changed files with 6 additions and 9 deletions

View File

@@ -90,6 +90,12 @@ public sealed class HTNSystem : EntitySystem
private void OnPrototypeLoad(PrototypesReloadedEventArgs obj)
{
if (!obj.ByType.ContainsKey(typeof(HTNCompoundTask)) &&
!obj.ByType.ContainsKey(typeof(HTNPrimitiveTask)))
{
return;
}
OnLoad();
}

View File

@@ -1,9 +0,0 @@
namespace Content.Server.NPC.Systems;
public sealed partial class NPCSystem
{
private void InitializeDebug()
{
}
}