]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Always reload NPCs on prototype reload (#13999)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Wed, 8 Feb 2023 14:01:27 +0000 (01:01 +1100)
committerGitHub <noreply@github.com>
Wed, 8 Feb 2023 14:01:27 +0000 (01:01 +1100)
Content.Server/NPC/HTN/HTNSystem.cs

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