Content update for NetEntities (#18935)
This commit is contained in:
@@ -12,8 +12,8 @@ namespace Content.IntegrationTests.Tests.Interaction;
|
||||
/// </summary>
|
||||
public sealed class InteractionTestSystem : EntitySystem
|
||||
{
|
||||
public Dictionary<int, EntityUid> Ghosts = new();
|
||||
public Dictionary<EntityUid, EntityUid> EntChanges = new();
|
||||
public Dictionary<int, NetEntity> Ghosts = new();
|
||||
public Dictionary<NetEntity, NetEntity> EntChanges = new();
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
@@ -23,7 +23,8 @@ public sealed class InteractionTestSystem : EntitySystem
|
||||
|
||||
private void OnEntChange(ConstructionChangeEntityEvent ev)
|
||||
{
|
||||
EntChanges[ev.Old] = ev.New;
|
||||
Assert.That(!IsClientSide(ev.Old) && !IsClientSide(ev.New));
|
||||
EntChanges[GetNetEntity(ev.Old)] = GetNetEntity(ev.New);
|
||||
}
|
||||
|
||||
private void OnAck(AckStructureConstructionMessage ev)
|
||||
|
||||
Reference in New Issue
Block a user