Fix some mispredict reconciliation issues. (#6319)

Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
Leon Friedrich
2022-01-31 05:34:48 +13:00
committed by GitHub
parent 90b2f716a4
commit d40bcc9168
15 changed files with 110 additions and 71 deletions

View File

@@ -24,7 +24,7 @@ namespace Content.Shared.Storage.Components
}
[Serializable, NetSerializable]
public class ShowLayerData
public class ShowLayerData : ICloneable
{
public IReadOnlyList<string> QueuedEntities { get; internal set; }
@@ -33,14 +33,14 @@ namespace Content.Shared.Storage.Components
QueuedEntities = new List<string>();
}
public ShowLayerData(IReadOnlyList<string> other)
public ShowLayerData(IEnumerable<string> other)
{
QueuedEntities = other;
QueuedEntities = new List<string>(other);
}
public ShowLayerData(ShowLayerData other)
public object Clone()
{
QueuedEntities = other.QueuedEntities;
return new ShowLayerData(QueuedEntities);
}
}
}