Fix buckle test (#4117)

AFAICT there's a directed event getting raised in TryUnbuckle from the parent change which then tries to GetComponent buckle which doesn't work.
This commit is contained in:
metalgearsloth
2021-06-01 23:42:54 +10:00
committed by GitHub
parent 1b77f18912
commit 841d07c622

View File

@@ -390,13 +390,13 @@ namespace Content.Server.GameObjects.Components.Buckle
public override void OnRemove()
{
base.OnRemove();
BuckledTo?.Remove(this);
TryUnbuckle(Owner, true);
_buckleTime = default;
UpdateBuckleStatus();
base.OnRemove();
}
public override ComponentState GetComponentState(ICommonSession player)