Content update for NetEntities (#18935)

This commit is contained in:
metalgearsloth
2023-09-27 21:59:12 +02:00
committed by Debug
parent e01e683230
commit c9648da984
526 changed files with 3058 additions and 2215 deletions
@@ -30,7 +30,7 @@ public sealed class CharacterInfoSystem : EntitySystem
return;
}
RaiseNetworkEvent(new RequestCharacterInfoEvent(entity.Value));
RaiseNetworkEvent(new RequestCharacterInfoEvent(GetNetEntity(entity.Value)));
}
private void OnPlayerAttached(PlayerAttachSysMessage msg)
@@ -43,7 +43,9 @@ public sealed class CharacterInfoSystem : EntitySystem
private void OnCharacterInfoEvent(CharacterInfoEvent msg, EntitySessionEventArgs args)
{
var data = new CharacterData(msg.EntityUid, msg.JobTitle, msg.Objectives, msg.Briefing, Name(msg.EntityUid));
var entity = GetEntity(msg.NetEntity);
var data = new CharacterData(entity, msg.JobTitle, msg.Objectives, msg.Briefing, Name(entity));
OnCharacterUpdate?.Invoke(data);
}