Update submodule to 182.1.0 (#21900)

This commit is contained in:
metalgearsloth
2023-11-26 13:53:54 +11:00
committed by GitHub
parent 808ed846d1
commit 855ab4d129
34 changed files with 332 additions and 110 deletions

View File

@@ -24,11 +24,11 @@ namespace Content.Server.NPC.Commands
return;
}
var entId = new EntityUid(int.Parse(args[0]));
var nent = new NetEntity(int.Parse(args[0]));
if (!_entities.EntityExists(entId))
if (!_entities.TryGetEntity(nent, out var entId))
{
shell.WriteError($"Unable to find entity with uid {entId}");
shell.WriteError($"Unable to find entity {nent}");
return;
}
@@ -38,7 +38,7 @@ namespace Content.Server.NPC.Commands
return;
}
var comp = _entities.AddComponent<HTNComponent>(entId);
var comp = _entities.AddComponent<HTNComponent>(entId.Value);
comp.RootTask = new HTNCompoundTask()
{
Task = args[1]