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:
parent
1b77f18912
commit
841d07c622
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue