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

@@ -1,10 +1,10 @@
using Content.Server.NPC.Components;
using Content.Server.NPC.HTN;
namespace Content.Server.NPC.Systems;
public sealed partial class NPCSystem
{
public void SetBlackboard(EntityUid uid, string key, object value, NPCComponent? component = null)
public void SetBlackboard(EntityUid uid, string key, object value, HTNComponent? component = null)
{
if (!Resolve(uid, ref component, false))
{