Content update for NetEntities (#18935)
This commit is contained in:
@@ -61,10 +61,12 @@ public sealed class NPCSteeringSystem : SharedNPCSteeringSystem
|
||||
|
||||
foreach (var data in ev.Data)
|
||||
{
|
||||
if (!Exists(data.EntityUid))
|
||||
var entity = GetEntity(data.EntityUid);
|
||||
|
||||
if (!Exists(entity))
|
||||
continue;
|
||||
|
||||
var comp = EnsureComp<NPCSteeringComponent>(data.EntityUid);
|
||||
var comp = EnsureComp<NPCSteeringComponent>(entity);
|
||||
comp.Direction = data.Direction;
|
||||
comp.DangerMap = data.Danger;
|
||||
comp.InterestMap = data.Interest;
|
||||
|
||||
Reference in New Issue
Block a user