Don't reload NPCs unless necessary (#13978)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
namespace Content.Server.NPC.Systems;
|
||||
|
||||
public sealed partial class NPCSystem
|
||||
{
|
||||
private void InitializeDebug()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user