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:
@@ -390,13 +390,13 @@ namespace Content.Server.GameObjects.Components.Buckle
|
|||||||
|
|
||||||
public override void OnRemove()
|
public override void OnRemove()
|
||||||
{
|
{
|
||||||
base.OnRemove();
|
|
||||||
|
|
||||||
BuckledTo?.Remove(this);
|
BuckledTo?.Remove(this);
|
||||||
TryUnbuckle(Owner, true);
|
TryUnbuckle(Owner, true);
|
||||||
|
|
||||||
_buckleTime = default;
|
_buckleTime = default;
|
||||||
UpdateBuckleStatus();
|
UpdateBuckleStatus();
|
||||||
|
|
||||||
|
base.OnRemove();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override ComponentState GetComponentState(ICommonSession player)
|
public override ComponentState GetComponentState(ICommonSession player)
|
||||||
|
|||||||
Reference in New Issue
Block a user