Fixed trying to resolve unregistered NPCComponent type, fix NPCs (#19547)
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user