Fixed trying to resolve unregistered NPCComponent type, fix NPCs (#19547)

This commit is contained in:
DrSmugleaf
2023-08-25 14:52:23 -07:00
committed by GitHub
parent bd1b9b3e52
commit 321986d5cc
3 changed files with 12 additions and 16 deletions

View File

@@ -5,16 +5,13 @@ using System.Threading;
using System.Threading.Tasks;
using Content.Server.Administration.Managers;
using Content.Server.Destructible;
using Content.Server.NPC.Components;
using Content.Server.NPC.HTN;
using Content.Shared.Administration;
using Content.Shared.Climbing;
using Content.Shared.Interaction;
using Content.Shared.NPC;
using Robust.Server.Player;
using Robust.Shared.Enums;
using Robust.Shared.Map;
using Robust.Shared.Physics;
using Robust.Shared.Physics.Components;
using Robust.Shared.Physics.Systems;
using Robust.Shared.Players;
using Robust.Shared.Random;
@@ -421,7 +418,7 @@ namespace Content.Server.NPC.Pathfinding
public PathFlags GetFlags(EntityUid uid)
{
if (!TryComp<NPCComponent>(uid, out var npc))
if (!TryComp<HTNComponent>(uid, out var npc))
{
return PathFlags.None;
}