Fix a buckled entity's sprite being drawn over the chair when looking up

This commit is contained in:
DrSmugleaf
2020-07-04 01:28:06 +02:00
parent b00d8310de
commit 45211a2f0b
4 changed files with 35 additions and 3 deletions

View File

@@ -31,12 +31,14 @@ namespace Content.Shared.GameObjects.Components.Mobs
[Serializable, NetSerializable]
protected sealed class BuckleComponentState : ComponentState
{
public BuckleComponentState(bool buckled) : base(ContentNetIDs.BUCKLE)
public BuckleComponentState(bool buckled, int? drawDepth) : base(ContentNetIDs.BUCKLE)
{
Buckled = buckled;
DrawDepth = drawDepth;
}
public bool Buckled { get; }
public int? DrawDepth;
}
[Serializable, NetSerializable]