Always reload NPCs on prototype reload (#13999)
This commit is contained in:
@@ -96,12 +96,6 @@ public sealed class HTNSystem : EntitySystem
|
|||||||
|
|
||||||
private void OnPrototypeLoad(PrototypesReloadedEventArgs obj)
|
private void OnPrototypeLoad(PrototypesReloadedEventArgs obj)
|
||||||
{
|
{
|
||||||
if (!obj.ByType.ContainsKey(typeof(HTNCompoundTask)) &&
|
|
||||||
!obj.ByType.ContainsKey(typeof(HTNPrimitiveTask)))
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
OnLoad();
|
OnLoad();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user